Divrey Hayamim Alef 24:5

5 Thus were they divided by goralot (lots) with one another; for the Sarei Kodesh and Sarei HaElohim, were of the Bnei Eleazar, and of the Bnei Itamar.

Divrey Hayamim Alef 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.

Divrey Hayamim Alef 24:5 In-Context

3 And Dovid with both Tzadok of the Bnei Eleazar, and Achimelech of the Bnei Itamar, divided them according to their pekudim (offices, assignments) in their avodah.
4 And there were more Rashei HaGevarim found of the Bnei Eleazar than of the Bnei Itamar, and thus were they divided. Among the Bnei Eleazar there were sixteen Rashim l’Bais Avot, and eight among the Bnei Itamar according to the Bais of their Avot.
5 Thus were they divided by goralot (lots) with one another; for the Sarei Kodesh and Sarei HaElohim, were of the Bnei Eleazar, and of the Bnei Itamar.
6 And Shema’yah ben Netanel the Sofer, one of the Levi’im, wrote them before HaMelech, and the Sarim, and Tzadok HaKohen, and Achimelech ben Evyatar (Abiathar), and before the Rashei HaAvot of the Kohanim and Levi’im, Bais Avechad being chosen for Eleazar, and one chosen for Itamar.
7 Now the first goral (lot) came forth to Yehoyariv, the second to Yedayah,
The Orthodox Jewish Bible fourth edition, OJB. Copyright 2002,2003,2008,2010, 2011 by Artists for Israel International. All rights reserved.