1 Then Satan stood up against Israel and moved David to number Israel. 2 So David said to Joab and to the princes of the people, "Go, number Israel from Beersheba even to Dan, and bring me word that I may know their number." 3 Joab said, "May the LORD add to His people a hundred times as many as they are! But, my lord the king, are they not all my lord's servants? Why does my lord seek this thing? Why should he be a cause of guilt to Israel?" 4 Nevertheless, the king's word prevailed against Joab. Therefore, Joab departed and went throughout all Israel, and came to Jerusalem. 5 Joab gave the number of the census of all the people to David. And all Israel were 1,100,000 men who drew the sword; and Judah was 470,000 men who drew the sword. 6 But he did not number Levi and Benjamin among them, for the king's command was abhorrent to Joab.
7 God was displeased with this thing, so He struck Israel. 8 David said to God, "I have sinned greatly, in that I have done this thing. But now, please take away the iniquity of Your servant, for I have done very foolishly." 9 The LORD spoke to Gad, David's seer, saying, 10 "Go and speak to David, saying, 'Thus says the LORD, "I offer you three things; choose for yourself one of them, which I will do to you."'" 11 So Gad came to David and said to him, "Thus says the LORD, 'Take for yourself 12 either three years of famine, or three months to be swept away before your foes, while the sword of your enemies overtakes you, or else three days of the sword of the LORD, even pestilence in the land, and the angel of the LORD destroying throughout all the territory of Israel.' Now, therefore, consider what answer I shall return to Him who sent me." 13 David said to Gad, "I am in great distress; please let me fall into the hand of the LORD, for His mercies are very great. But do not let me fall into the hand of man."
14 So the LORD sent a pestilence on Israel; 70,000 men of Israel fell. 15 And God sent an angel to Jerusalem to destroy it; but as he was about to destroy it, the LORD saw and was sorry over the calamity, and said to the destroying angel, "It is enough; now relax your hand." And the angel of the LORD was standing by the threshing floor of Ornan the Jebusite. 16 Then David lifted up his eyes and saw the angel of the LORD standing between earth and heaven, with his drawn sword in his hand stretched out over Jerusalem. Then David and the elders, covered with sackcloth, fell on their faces. 17 David said to God, "Is it not I who commanded to count the people? Indeed, I am the one who has sinned and done very wickedly, but these sheep, what have they done? O LORD my God, please let Your hand be against me and my father's household, but not against Your people that they should be plagued."New American Standard Bible (NASB) Copyright © 1960, 1962, 1963, 1968, 1971, 1972, 1973, 1975, 1977, 1995 by The Lockman Foundation