John Gill's Bible Commentary Ver. 1. And David numbered the people that [were] with him , etc.] Which Josephus says were four thousand; but one would think there should be more by what follows: and set captains of thousands and captains of hundreds over them ; he divided his army into companies, which consisted some of a thousand and others of a hundred; over each of which he set captains, to lead them on, direct, and command them in battle.
Matthew Henry Commentary
Verses 1-8 - How does David render good for evil! Absalom would have only Davi smitten; David would have only Absalom spared. This seems to be resemblance of man's wickedness towards God, and God's mercy to man, of which it is hard to say which is most amazing. Now the Israelites se what it is to take counsel against the Lord and his anointed.
Original Hebrew ויפקד6485 דוד1732 את853 העם5971 אשׁר834 אתו854 וישׂם7760 עליהם5921 שׂרי8269 אלפים505 ושׂרי8269 מאות׃3967