1 Chronicles 24:5

5 They were divided impartially by lot, for there were officers of the sanctuary and officers of God among both Eleazar's and Ithamar's descendants.

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 Together with Zadok from the sons of Eleazar and Ahimelech from the sons of Ithamar, David divided them according to the assigned duties of their service.
4 Since more leaders were found among Eleazar's descendants than Ithamar's, they were divided [accordingly]: 16 heads of ancestral houses were from Eleazar's descendants, and eight [heads] of ancestral houses were from Ithamar's.
5 They were divided impartially by lot, for there were officers of the sanctuary and officers of God among both Eleazar's and Ithamar's descendants.
6 The secretary, Shemaiah son of Nethanel, a Levite, recorded them in the presence of the king and the officers, Zadok the priest, Ahimelech son of Abiathar, and the heads of families of the priests and the Levites. One ancestral house was taken for Eleazar, and then one for Ithamar.
7 The first lot fell to Jehoiarib, the second to Jedaiah,
Holman Christian Standard Bible ® Copyright © 2003, 2002, 2000, 1999 by Holman Bible Publishers.  Used by permission.  All rights reserved.