24 The divisions of the descendants of Aaron were as follows: Aaron’s sons were Nadab, Abihu, Eleazar, and Ithamar. 2 But Nadab and Abihu died before their father, and they had no sons, so Eleazar and Ithamar served as priests. 3 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. 4 Since more leaders were found among Eleazar’s descendants than Ithamar’s, they were divided accordingly: 16 heads of ancestral houses were from Eleazar’s descendants, and eight heads of ancestral houses were from Ithamar’s. 5 They were assigned by lot, for there were officers of the sanctuary and officers of God among both Eleazar’s and Ithamar’s descendants.
6 The secretary, Shemaiah son of Nethanel, a Levite, recorded them in the presence of the king and the officers, Zadok the priest, Ahimelech son of Abiathar, and the heads of families of the priests and the Levites. One ancestral house was taken for Eleazar, and then one for Ithamar.
19 These had their assigned duties for service when they entered the Lord’s temple, according to their regulations, which they received from their ancestor Aaron, as the Lord God of Israel had commanded him.
Those were the sons of the Levites according to their ancestral houses. 31 They also cast lots the same way as their relatives the sons of Aaron did in the presence of King David, Zadok, Ahimelech, and the heads of the families of the priests and Levites — the family heads and their younger brothers alike.