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.
The Work Assigned to the Priests
1 These are the groups to which the descendants of Aaron belong. Aaron had four sons: Nadab, Abihu, Eleazar, and Ithamar. 2 Nadab and Abihu died before their father did, and left no descendants, so their brothers Eleazar and Ithamar became priests. 3 King David organized the descendants of Aaron into groups according to their duties. He was assisted in this by Zadok, a descendant of Eleazar, and by Ahimelech, a descendant of Ithamar. 4 The descendants of Eleazar were organized into sixteen groups, while the descendants of Ithamar were organized into eight; this was done because there were more male heads of families among the descendants of Eleazar. 5 Since there were Temple officials and spiritual leaders among the descendants of both Eleazar and Ithamar, assignments were made by drawing lots. 6 The descendants of Eleazar and of Ithamar took turns drawing lots. Then they were registered by Shemaiah son of Nethanel, a Levite secretary. The king, his officials, the priest Zadok, Ahimelech son of Abiathar, and the heads of the priestly families and of the Levite families, were all witnesses.
7-18 This is the order in which the twenty-four family groups were given their assignments: 1) Jehoiarib; 2) Jedaiah; 3) Harim; 4) Seorim; 5) Malchijah; 6) Mijamin; 7) Hakkoz; 8) Abijah; 9) Jeshua; 10) Shecaniah; 11) Eliashib; 12) Jakim; 13) Huppah; 14) Jeshebeab; 15) Bilgah; 16) Immer; 17) Hezir; 18) Happizzez; 19) Pethahiah; 20) Jehezkel; 21) Jachin; 22) Gamul; 23) Delaiah; 24) Maaziah.
19 These men were registered according to their assignments for going to the Temple and performing the duties established by their ancestor Aaron in obedience to the commands of the Lord God of Israel.
The List of the Levites
20 These are other heads of families descended from Levi:
Jehdeiah, a descendant of Amram through Shebuel;
21 Isshiah, a descendant of Rehabiah;
22 Jahath, a descendant of Izhar through Shelomith;
23 Jeriah, Amariah, Jehaziel, and Jekameam, sons of Hebron, in order of age;
24 Shamir, a descendant of Uzziel through Micah;
25 Zechariah, a descendant of Uzziel through Isshiah, Micah's brother;
26 Mahli, Mushi, and Jaaziah, descendants of Merari. 27 Jaaziah had three sons: Shoham, Zaccur, and Ibri. 28-29 Mahli had two sons, Eleazar and Kish. Eleazar had no sons, but Kish had one son, Jerahmeel. 30 Mushi had three sons: Mahli, Eder, and Jeremoth.
These are the families of the Levites.
31 The head of each family and one of his younger brothers drew lots for their assignments, just as their relatives, the priests descended from Aaron, had done. King David, Zadok, Ahimelech, and the heads of families of the priests and of the Levites were witnesses.