John Gill's Bible Commentary Ver. 4. Of which twenty and four thousand were to set forward the work of the house of the Lord , etc.] To prepare for the work of the priests by slaying the sacrifices, flaying them, cutting them in pieces, and washing them, and bringing them to the altar; 1000 of these served weekly in their turns: and six thousand were officers and judges : that acted as justices of the peace in the several parts of the country, heard causes and administered justice to the people, being trained up in and acquainted with the laws of God, civil as well as ecclesiastic; some were more properly judges, and others executioners of their sentence; see ( Deuteronomy 16:18 17:9).
Matthew Henry Commentary
Verses 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 woul engage them to love and assist one another.
Original Hebrew מאלה428 לנצח5329 על5921 מלאכת4399 בית1004 יהוה3068 עשׂרים6242 וארבעה702 אלף505 ושׁטרים7860 ושׁפטים8199 שׁשׁת8337 אלפים׃505