1 Chronicles 24:5

5 The priests were separated into their groups by using lots. That was the fair way to do it. The priests were officials of the temple and officials of God. They came from the family lines of Eleazar and Ithamar.

1 Chronicles 24:5 Meaning and Commentary

1 Chronicles 24:5

Thus were they divided by lot, one sort with another
Which course should serve first, and which next, and so on; and who should be the chief to each course; which course was to serve a week, and then go out; and this method was taken to prevent envy, strife, and contention about precedence:

for the governors of the sanctuary;
or of the holy things, or who presided in things ecclesiastical:

and governors of the house of God:
or rather "governors of God", appointed by him judges in civil things:

were of the sons of Eleazar, and of the sons of Ithamar:
there were, of both families, some employed both in sacred and civil things, and who presided in each.

1 Chronicles 24:5 In-Context

3 With the help of Zadok and Ahimelech, David separated the priests into groups. Each group served in its appointed order and time. Zadok belonged to the family line of Eleazar. Ahimelech belonged to the family line of Ithamar.
4 More leaders were found among Eleazar's family line than among Ithamar's. So the priests were separated into their groups based on that fact. There were 16 family leaders from Eleazar's line. There were eight family leaders from Ithamar's line.
5 The priests were separated into their groups by using lots. That was the fair way to do it. The priests were officials of the temple and officials of God. They came from the family lines of Eleazar and Ithamar.
6 Shemaiah was a Levite. He was the son of Nethanel. He was the writer who recorded the names of the priests. He wrote them down in front of the king and the officials. The officials included the priest Zadok and Ahimelech. Ahimelech was the son of Abiathar. They also included the leaders of the families of the priests and the Levites. One family was chosen by lot from Eleazar. Then one was chosen from Ithamar.
7 The 1st lot that was drawn out was for Jehoiarib. The 2nd was for Jedaiah.
Holy Bible, New International Reader's Version® Copyright © 1995, 1996, 1998 by Biblica.   All rights reserved worldwide.