These were the groups of Aaron's sons: Aaron's sons 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.
David, with the help of Zadok, a descendant of Eleazar, and Ahimelech, a descendant of Ithamar, separated their family groups into two different groups. Each group had certain duties.
There were more leaders from Eleazar's family than from Ithamar's -- sixteen leaders from Eleazar's family and eight leaders from Ithamar's family.
Men were chosen from Eleazar's and Ithamar's families by throwing lots. Some men from each family were chosen to be in charge of the Holy Place, and some were chosen to serve as priests.
Shemaiah son of Nethanel, from the tribe of Levi, was the secretary. He recorded the names of those descendants in front of King David, the officers, Zadok the priest, Ahimelech son of Abiathar, and the leaders of the families of the priests and Levites. The work was divided by lots among the families of Eleazar and Ithamar. The following men with their groups were chosen.
The first one chosen was Jehoiarib. The second was Jedaiah.
The third was Harim. The fourth was Seorim.
The fifth was Malkijah. The sixth was Mijamin.
The seventh was Hakkoz. The eighth was Abijah.
The ninth was Jeshua. The tenth was Shecaniah.
The eleventh was Eliashib. The twelfth was Jakim.
The thirteenth was Huppah. The fourteenth was Jeshebeab.
The fifteenth was Bilgah. The sixteenth was Immer.
The seventeenth was Hezir. The eighteenth was Happizzez.
The nineteenth was Pethahiah. The twentieth was Jehezkel.
The twenty-first was Jakin. The twenty-second was Gamul.
The twenty-third was Delaiah. The twenty-fourth was Maaziah.
These were the groups chosen to serve in the Temple of the Lord. They obeyed the rules given them by Aaron, just as the Lord, the God of Israel, had commanded him.
These are the names of the rest of Levi's descendants: Shubael was a descendant of Amram, and Jehdeiah was a descendant of Shubael.
Isshiah was the first son of Rehabiah.
From the Izhar family group, there was Shelomoth, and Jahath was a descendant of Shelomoth.
Hebron's first son was Jeriah, Amariah was his second, Jahaziel was his third, and Jekameam was his fourth.
Uzziel's son was Micah. Micah's son was Shamir.
Micah's brother was Isshiah, and Isshiah's son was Zechariah.
Merari's descendants were Mahli and Mushi. Merari's son was Jaaziah.
Jaaziah son of Merari had sons named Shoham, Zaccur, and Ibri.
Mahli's son was Eleazar, but Eleazar did not have any sons.
Kish's son was Jerahmeel.
Mushi's sons were Mahli, Eder, and Jerimoth. These are the Levites, listed by their families.
They were chosen for special jobs by throwing lots in front of King David, Zadok, Ahimelech, the leaders of the families of the priests, and the Levites. They did this just as their relatives, the priests, Aaron's descendants, had done. The families of the oldest brother and the youngest brother were treated the same.