10 And after the people had been numbered, David's heart was troubled. And David said to the Lord, Great has been my sin in doing this; but now, O Lord, be pleased to take away the sin of your servant, for I have done very foolishly 11 And David got up in the morning; now the word of the Lord had come to the prophet Gad, David's seer, saying, 12 Go and say to David, The Lord says, Three things are offered to you: say which of them you will have, and I will do it to you. 13 So Gad came to David, and gave him word of this and said to him, Are there to be three years when there is not enough food in your land? or will you go in flight from your haters for three months, while they go after you? or will you have three days of violent disease in your land? take thought and say what answer I am to give to him who sent me. 14 And David said to Gad, This is a hard decision for me to make: let us come into the hands of the Lord, for great are his mercies: let me not come into the hands of men. 15 So David made selection of the disease; and the time was the days of the grain-cutting, when the disease came among the people, causing the death of seventy thousand men from Dan as far as Beer-sheba.

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.