Here we have,

I. The orders which David gave to Joab to number the people of Israel and Judah, 2 Sam. 24:1, 2. Two things here seem strange:—1. The sinfulness of this. What harm was there in it? Did not Moses twice number the people without any crime? Does not political arithmetic come in among the other policies of a prince? Should not the shepherd know the number of his sheep? Does not the Son of David know all his own by name? Might not he make good use of this calculation? What evil has he done, if he do this? Answer, It is certain that it was a sin, and a great sin; but where the evil of it lay is not so certain. (1.) Some think the fault was that he numbered those that were under twenty years old if they were but of stature and strength able to bear arms, and that this was the reason why this account was not enrolled, because it was illegal, 1 Chron. 27:23, 24. (2.) Others think the fault was that he did not require the half-shekel, which was to be paid for the service of the sanctuary whenever the people were numbered, as a ransom for their souls, Exod. 30:12. (3.) Others think that he did it with a design to impose a tribute upon them for himself, to be put into his treasury, and this by way of poll, so that when he knew their numbers he could tell what it would amount to. But nothing of this appears, nor was David ever a raiser of taxes. (4.) This was the fault, that he had no orders from God to do it, nor was there any occasion for the doing of it. It was a needless trouble both to himself and to his people. (5.) Some think that it was an affront to the ancient promise which God made to Abraham, that his seed should be innumerable as the dust of the earth; it savoured of distrust of that promise, or a design to show that it was not fulfilled in the letter of it. He would number those of whom God had said that they could not be numbered. Those know not what they do that go about to disprove the word of God. (6.) That which was the worst thing in numbering the people was that David did it in the pride of his heart, which was Hezekiah’s sin in showing his treasures to the ambassadors. [1.] It was a proud conceit of his own greatness in having the command of so numerous a people, as if their increase, which was to be ascribed purely to the blessing of God, had been owing to any conduct of his own. [2.] It was a proud confidence in his own strength. By publishing among the nations the number of his people, he thought to appear the more formidable, and doubted not that, if he should have any war, he should overpower his enemies with the multitude of his forces, 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 sees men’s principles, and is a discerner of the thoughts and intents of the heart. But his judgment, we are sure, is according to truth.

2. The spring from which it is here said to arise is yet more strange, 2 Sam. 24:1. It is not strange that the anger of the Lord should be kindled against Israel. There was cause enough for it. They were unthankful for the blessings of David’s government, and strangely drawn in to take part with Absalom first and afterwards with Sheba. We have reason to think that their peace and plenty made them secure and sensual, and that God was therefore displeased with them. But that, in this displeasure, he should move David to number the people is very strange. We are sure that God is not the author of sin; he tempts no man: we are told (1 Chron. 21:1) that Satan provoked David to number Israel. Satan, as an enemy, suggested it for a sin, as he put it into the heart of Judas to betray Christ. God, as righteous Judge, permitted it, with a design, from this sin of David, to take an occasion to punish Israel for other sins, for which he might justly have punished them without this. But, as before he brought a famine upon them for the sin of Saul, so now a pestilence for the sin of David, that princes may from these instances learn, when the judgments of God are abroad, to suspect that their sins are the ground of the controversy, and may therefore repent and reform themselves, which should have a great influence upon national repentance and reformation, and that people may learn to pray for those in authority, that God would keep them from sin, because, if they sin, the kingdom smarts.

II. The opposition which Joab made to these orders. Even he was aware of David’s folly and vain-glory in this design. He observed that David gave no reason for it, only, Number the people, that I may know the number of the people; and therefore he endeavored to divert his pride, and in a much more respectful manner than he had before endeavoured to divert his passion upon the death of Absalom; then he spoke rudely and insolently (2 Sam. 19:5-7), but now as became him: Now the Lord thy God add unto the people a hundred fold, 2 Sam. 24:3. There was no occasion to tax them, nor to enlist them, nor to make any distribution of them. They were all easy and happy; and Joab wished both that their number might increase and that the king, though old, might live to see their increase, and have the satisfaction of it. “But why doth my lord the king delight in this thing? What need is there of doing it?” Pauperis est numerare pecus—Leave it to the poor to count their flocks. Especially why should David, who speaks so much of delighting in God and the exercises of devotion, and who, being old, one would think, should have put away childish things, take a pleasure (so he calls it modestly, but he means taking pride) in a thing of this nature? Note, Many things, not in themselves sinful, turn into sin to us by our inordinately delighting in them. Joab was aware of David’s vanity herein, but he himself was not. It would be good for us to have a friend that would faithfully admonish us when we say or do any thing proud or vain-glorious, for we often do so and are not ourselves aware of it.

III. The orders executed notwithstanding. The king’s word prevailed, 2 Sam. 24:4. He would have it done; Joab must not gainsay it, lest he be thought to grudge his time and pains in the king’s service. It is an unhappiness to great men to have those about them that will aid them and serve them in that which is evil. Joab, according to order, applied himself with some reluctancy to this unpleasing task, and took the captains of the host to help him. They began in the most distant places, in the east first, on the other side Jordan (2 Sam. 24:5), then they went towards Dan in the north (2 Sam. 24:6), so to Tyre on the east, and thence to Beer-sheba in the south, 2 Sam. 24:7. Above nine months were spent in taking this account, a great deal of trouble and amazement were occasioned by it in the country (2 Sam. 24:8), and the sum total was, at length, brought to the king at Jerusalem, 2 Sam. 24:9. Whether the numbers answered David’s expectation or no we are not told, nor whether the account fed his pride or mortified it. The people were very many, but, it may be, not so many as he thought they were. They had not increased in Canaan as they had in Egypt, nor were much more than double to what they were when they came into Canaan under Joshua, about 400 years before; yet it is an evidence that Canaan was a very fruitful land that so many thousands were maintained within so narrow a compass.