The family of Aaron was grouped as follows: Aaron's sons were Nadab, Abihu, Eleazar, and Ithamar.
Nadab and Abihu died before their father and left no sons. So Eleazar and Ithamar filled the office of priest.
David assigned Zadok from the family of Eleazar and Ahimelech from the family of Ithamar and assigned them to separate divisions for carrying out their appointed ministries.
It turned out that there were more leaders in Eleazar's family than in Ithamar's and so they divided them proportionately: sixteen clan leaders from Eleazar's family and eight clan leaders from Ithamar's family.
They assigned the leaders by lot, treating both families alike, for there were officials of the sanctuary and officials of God among both the Eleazar and Ithamar families.
The secretary Shemaiah son of Nethanel, a Levite, wrote down their names in the presence of the king, the officials, Zadok the priest, Ahimelech son of Abiathar, and the leaders of the priestly and Levitical families. They took turns: One family was selected from Eleazar and then one from Ithamar.
The first lot fell to Jehoiarib, the second to Jedaiah,
the third to Harim, the fourth to Seorim,
the fifth to Malkijah, the sixth to Mijamin,
the seventh to Hakkoz, the eighth to Abijah,
the ninth to Jeshua, the tenth to Shecaniah,
the eleventh to Eliashib, the twelfth to Jakim,
the thirteenth to Huppah, the fourteenth to Jeshebeab,
the fifteenth to Bilgah, the sixteenth to Immer,
the seventeenth to Hezir, the eighteenth to Happizzez,
the nineteenth to Pethahiah, the twentieth to Jehezkel,
the twenty-first to Jakin, the twenty-second to Gamul,
the twenty-third to Delaiah, and the twenty-fourth to Maaziah.
They served in this appointed order when they entered The Temple of God, following the procedures laid down by their ancestor Aaron as God, the God of Israel, had commanded him.
The rest of the Levites are as follows: From the sons of Amram: Shubael; from the sons of Shubael: Jehdeiah.
Concerning Rehabiah: from his sons, Isshiah was the first.
From the Izharites: Shelomoth; from the sons of Shelomoth: Jahath.
The sons of Hebron: Jeriah the first, Amariah the second, Jahaziel the third, and Jekameam the fourth.
The son of Uzziel: Micah, and from the sons of Micah: Shamir.
The brother of Micah was Isshiah, and from the sons of Isshiah: Zechariah.
The sons of Merari: Mahli and Mushi. The son of Jaaziah: Beno.
The sons of Merari from Jaaziah: Beno, Shoham, Zaccur, and Ibri.
From Mahli: Eleazar, who had no sons.
From Kish: Jerahmeel, the son of Kish.
And from the sons of Mushi: Mahli, Eder, and Jerimoth.
They also cast lots, the same as their kindred the sons of Aaron had done, in the presence of David the king, Zadok, Ahimelech, and the leaders of the priestly and Levitical families. The families of the oldest and youngest brothers were treated the same.