Verse 4. -
The captains of the host. The matter was not undertaken without a council being held, and at it David's chief officers agreed with Joab; but David had made up his mind, and would take no advice.
24:1-9 For the people's sin David was left to act wrong, and in his chastisement they received punishment. This example throws light upon God's government of the world, and furnishes a useful lesson. The pride of David's heart, was his sin in numbering of the people. He thought thereby to appear the more formidable, trusting in an arm of flesh more than he should have done, and though he had written so much of trusting in God only. God judges not of sin as we do. What appears to us harmless, or, at least, but a small offence, may be a great sin in the eye of God, who discerns the thoughts and intents of the heart. Even ungodly men can discern evil tempers and wrong conduct in believers, of which they themselves often remain unconscious. But God seldom allows those whom he loves the pleasures they sinfully covet.
Notwithstanding the king's word prevailed against Joab, and against the captains of the host,.... Who it seems were of the same mind with Joab, and were against numbering the people, yet their arguments and remonstrances were of no avail with the king; he was determined it should be done, and laid his commands upon them to do it, which they were obliged to comply with:
and Joab and the captains of the host went out from the presence of the king, to number the people of Israel; seeing him resolute and determined, they submitted, took his orders, and set out to execute them.