However, both families included temple officials and priests, and so to make sure the work was divided fairly, David asked God what to do.