10 But when it was all done, David was overwhelmed with guilt because he had counted the people, replacing trust with statistics. And David prayed to God, "I have sinned badly in what I have just done. But now God forgive my guilt - I've been really stupid." 11 When David got up the next morning, the word of God had already come to Gad the prophet, David's spiritual advisor, 12 "Go and give David this message: 'God has spoken thus: There are three things I can do to you; choose one out of the three and I'll see that it's done.'" 13 Gad came to deliver the message: "Do you want three years of famine in the land, or three months of running from your enemies while they chase you down, or three days of an epidemic on the country? Think it over and make up your mind. What shall I tell the one who sent me?" 14 David told Gad, "They're all terrible! But I'd rather be punished by God, whose mercy is great, than fall into human hands." 15 So God let loose an epidemic from morning until suppertime. From Dan to Beersheba seventy thousand people died.

Matthew Henry's Commentary on 2 Samuel 24:10-15

Commentary on 2 Samuel 24:10-15

(Read 2 Samuel 24:10-15)

It is well, when a man has sinned, if he has a heart within to smite him for it. If we confess our sins, we may pray in faith that God would forgive them, and take away, by pardoning mercy, that sin which we cast away by sincere repentance. What we make the matter of our pride, it is just in God to take from us, or make bitter to us, and make it our punishment. This must be such a punishment as the people have a large share in, for though it was David's sin that opened the sluice, the sins of the people all contributed to the flood. In this difficulty, David chose a judgment which came immediately from God, whose mercies he knew to be very great, rather than from men, who would have triumphed in the miseries of Israel, and have been thereby hardened in their idolatry. He chose the pestilence; he and his family would be as much exposed to it as the poorest Israelite; and he would continue for a shorter time under the Divine rebuke, however severe it was. The rapid destruction by the pestilence shows how easily God can bring down the proudest sinners, and how much we owe daily to the Divine patience.