These were the divisions of the descendants of Aaron: The sons of Aaron were Nadab, Abihu, Eleazar and Ithamar.
But Nadab and Abihu died before their father did, and they had no sons; so Eleazar and Ithamar served as the priests.
With the help of Zadok a descendant of Eleazar and Ahimelek a descendant of Ithamar, David separated them into divisions for their appointed order of ministering.
A larger number of leaders were found among Eleazar’s descendants than among Ithamar’s, and they were divided accordingly: sixteen heads of families from Eleazar’s descendants and eight heads of families from Ithamar’s descendants.
They divided them impartially by casting lots, for there were officials of the sanctuary and officials of God among the descendants of both Eleazar and Ithamar.
The scribe Shemaiah son of Nethanel, a Levite, recorded their names in the presence of the king and of the officials: Zadok the priest, Ahimelek son of Abiathar and the heads of families of the priests and of the Levites—one family being taken 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 Shekaniah,
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.
This was their appointed order of ministering when they entered the temple of the LORD, according to the regulations prescribed for them by their ancestor Aaron, as the LORD, the God of Israel, had commanded him.