David Assigns the Priests Their Duties
1 Aaron's descendants were then divided into work groups. Aaron had four sons: Nadab, Abihu, Eleazar, and Ithamar. 2 But Nadab and Abihu died long before their father, without having any sons. That's why Eleazar and Ithamar served as priests.
3 David divided Aaron's descendants into groups, according to their assigned work. Zadok, one of Eleazar's descendants, and Ahimelech, one of Ithamar's descendants, helped David.
4 Eleazar's descendants were divided into 16 groups, and Ithamar's were divided into eight groups, because Eleazar's family included more family leaders. 5 However, both families included temple officials and priests, and so to make sure the work was divided fairly, David asked God what to do.
6 As each group was assigned their duties, Shemaiah the son of Nethanel the Levite wrote down the name of the family leader in charge of that group. The witnesses were David and his officials, as well as Zadok the priest, Ahimelech the son of Abiathar, and the family leaders from the clans of the priests and the Levites.
7-18 Each group of priests went by the name of its family leader, and they were assigned their duties in the following order: Jehoiarib, Jedaiah, Harim, Seorim, Malchijah, Mijamin, Hakkoz, Abijah, Jeshua, Shecaniah, Eliashib, Jakim, Huppah, Jeshebeab, Bilgah, Immer, Hezir, Happizzez, Pethahiah, Jehezkel, Jachin, Gamul, Delaiah, Maaziah. 19 These men were assigned their duties at the temple, just as the Lord God of Israel had commanded their ancestor Aaron.
The Rest of the Levites Are Assigned Their Duties
20 Here is a list of the other descendants of Levi:

Amram was the ancestor of Shubael and Jehdeiah.21 Rehabiah was the ancestor of Isshiah, the oldest son in his family.22 Izhar was the father of Shelomoth and the grandfather of Jahath.23 Hebron had four sons, in the following order: Jeriah, Amariah, Jahaziel, and Jekameam.24 Uzziel was the father of Micah and the grandfather of Shamir.25 Isshiah, Micah's brother, was the father of Zechariah.26 Merari was the father of Mahli, Mushi, and Jaaziah.
27 Jaaziah had three sons: Shoham, Zaccur, and Ibri. 28-29 Mahli was the father of Eleazar and Kish. Eleazar had no sons, but Kish was the father of Jerahmeel. 30 Mushi had three sons: Mahli, Eder, and Jerimoth.
These were the descendants of Levi, according to their clans. 31 Each one was assigned his duties in the same way that their relatives the priests had been assigned their duties. David, Zadok, Ahimelech, and the family leaders of the priests and Levites were the witnesses.
1 Now these are the divisions of the sons of Aaron. The sons of Aaron; Nadab, and Abihu, Eleazar, and Ithamar. 2 But Nadab and Abihu died before their father, and had no children: therefore Eleazar and Ithamar executed the priest’s office. 3 And David distributed them, both Zadok of the sons of Eleazar, and Ahimelech of the sons of Ithamar, according to their offices in their service. 4 And there were more chief men found of the sons of Eleazar than of the sons of Ithamar; and thus were they divided. Among the sons of Eleazar there were sixteen chief men of the house of their fathers, and eight among the sons of Ithamar according to the house of their fathers. 5 Thus were they divided by lot, one sort with another; for the governors of the sanctuary, and governors of the house of God, were of the sons of Eleazar, and of the sons of Ithamar. 6 And Shemaiah the son of Nethaneel the scribe, one of the Levites, wrote them before the king, and the princes, and Zadok the priest, and Ahimelech the son of Abiathar, and before the chief of the fathers of the priests and Levites: one principal household being taken for Eleazar, and one taken for Ithamar. 7 Now the first lot came forth to Jehoiarib, the second to Jedaiah, 8 The third to Harim, the fourth to Seorim, 9 The fifth to Malchijah, the sixth to Mijamin, 10 The seventh to Hakkoz, the eighth to Abijah, 11 The ninth to Jeshua, the tenth to Shecaniah, 12 The eleventh to Eliashib, the twelfth to Jakim, 13 The thirteenth to Huppah, the fourteenth to Jeshebeab, 14 The fifteenth to Bilgah, the sixteenth to Immer, 15 The seventeenth to Hezir, the eighteenth to Aphses, 16 The nineteenth to Pethahiah, the twentieth to Jehezekel, 17 The one and twentieth to Jachin, the two and twentieth to Gamul, 18 The three and twentieth to Delaiah, the four and twentieth to Maaziah. 19 These were the orderings of them in their service to come into the house of the LORD, according to their manner, under Aaron their father, as the LORD God of Israel had commanded him.
20 ¶ And the rest of the sons of Levi were these: Of the sons of Amram; Shubael: of the sons of Shubael; Jehdeiah. 21 Concerning Rehabiah: of the sons of Rehabiah, the first was Isshiah. 22 Of the Izharites; Shelomoth: of the sons of Shelomoth; Jahath. 23 And the sons of Hebron; Jeriah the first , Amariah the second, Jahaziel the third, Jekameam the fourth. 24 Of the sons of Uzziel; Michah: of the sons of Michah; Shamir. 25 The brother of Michah was Isshiah: of the sons of Isshiah; Zechariah. 26 The sons of Merari were Mahli and Mushi: the sons of Jaaziah; Beno.
27 ¶ The sons of Merari by Jaaziah; Beno, and Shoham, and Zaccur, and Ibri. 28 Of Mahli came Eleazar, who had no sons. 29 Concerning Kish: the son of Kish was Jerahmeel. 30 The sons also of Mushi; Mahli, and Eder, and Jerimoth. These were the sons of the Levites after the house of their fathers. 31 These likewise cast lots over against their brethren the sons of Aaron in the presence of David the king, and Zadok, and Ahimelech, and the chief of the fathers of the priests and Levites, even the principal fathers over against their younger brethren.