1 Chronicles 23:3-6
23:3 The Levites who were thirty years old and up were counted; there were 38,000 men.
23:4 David said,
“Of these, 24,000 are to direct the work of the
Lord’s temple; 6,000 are to be officials and judges;
23:5 4,000 are to be gatekeepers; and 4,000 are to praise the
Lord with the instruments I supplied for worship.”
23:6 David divided them into groups corresponding to the sons of Levi: Gershon, Kohath, and Merari.
1 Chronicles 24:3-6
24:3 David, Zadok (a descendant of Eleazar), and Ahimelech (a descendant of Ithamar) divided them into groups to carry out their assigned responsibilities.
24:4 The descendants of Eleazar had more leaders than the descendants of Ithamar, so they divided them up accordingly; the descendants of Eleazar had sixteen leaders, while the descendants of Ithamar had eight.
24:5 They divided them by lots, for there were officials of the holy place and officials designated by God among the descendants of both Eleazar and Ithamar.
24:6 The scribe Shemaiah son of Nethanel, a Levite, wrote down their names before the king, the officials, Zadok the priest, Ahimelech son of Abiathar, and the leaders of the priestly and Levite families. One family was drawn by lot from Eleazar, and then the next from Ithamar.
Luke 1:8-9
1:8 Now while Zechariah was serving as priest before God when his division was on duty,
1:9 he was chosen by lot, according to the custom of the priesthood, to enter the holy place of the Lord and burn incense.