2 And he gathered together all the princes of Israel, with the priests and the Levites. 3 And the Levites were numbered from thirty years old and upward: and their number by their polls, man by man, was thirty and eight thousand. 4 Of these, twenty and four thousand were to oversee the work of the house of Jehovah; and six thousand were officers and judges; 5 and four thousand were doorkeepers; and four thousand praised Jehovah with the instruments which I made, [said David], to praise therewith. 6 And David divided them into courses according to the sons of Levi: Gershon, Kohath, and Merari.
Matthew Henry's Commentary on 1 Chronicles 23:2-6
Commentary on 1 Chronicles 23:1-23
(Read 1 Chronicles 23:1-23)
David, having given charge concerning the building of the temple, settles the method of the temple service, and orders the officers of it. When those of the same family were employed together, it would engage them to love and assist one another.