So David reigned over all Israel and did what was just and right for all his people.