1 Chronicles 23:2-6

LEB(i) 2 And he assembled all the commanders of Israel and the priests and the Levites. 3 And the Levites thirty years old and above were counted, and their number according to their head count for the men was thirty-eight thousand. 4 Of these, David said, "Twenty-four thousand are to direct the work of the house of Yahweh, along with six thousand judges and officials, 5 four thousand gatekeepers, and four thousand offering praise with the instruments that I have made for praise." 6 And David organized them in divisions according to the sons of Levi: to Gershon, Kohath, and Merari.