Together with Zadok from the sons of Eleazar and Ahimelech from the sons of Ithamar, David divided them according to the assigned duties of their service.