John Gill's Bible Commentary Ver. 5. Moreover four thousand were porters , etc.] At the east, north, and south gates of the temple, in their turns; and four thousand praised the Lord with the instruments ; were singers in the temple, which in all made up 38,000: which I made, said David, to praise therewith ; which instruments he devised and ordered to be made to praise the Lord with; (see Chronicles 29:26 Nehemiah 12:36).
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 וארבעת702 אלפים505 שׁערים7778 וארבעת702 אלפים505 מהללים1984 ליהוה3068 בכלים3627 אשׁר834 עשׂיתי6213 להלל׃1984