Now Satan stood up against Israel, and moved David to number Israel. So David said to Joab and to the leaders of the people, “Go, number Israel from Beersheba to Dan, and bring the number of them to me that I may know it.”
And Joab answered, “May the LORD make His people a hundred times more than they are. But, my lord the king, are they not all my lord’s servants? Why then does my lord require this thing? Why should he be a cause of guilt in Israel?”
Nevertheless the king’s word prevailed against Joab. Therefore Joab departed and went throughout all Israel and came to Jerusalem. Then Joab gave the sum of the number of the people to David. All Israel had one million one hundred thousand men who drew the sword, and Judah had four hundred and seventy thousand men who drew the sword. But he did not count Levi and Benjamin among them, for the king’s word was abominable to Joab.
And God was displeased with this thing; therefore He struck Israel. So David said to God, “I have sinned greatly, because I have done this thing; but now, I pray, take away the iniquity of Your servant, for I have done very foolishly.”
Then the LORD spoke to Gad, David’s seer, saying, “Go and tell David, saying, ‘Thus says the LORD: “I offer you three things; choose one of them for yourself, that I may do it to you.” ’ ”
So Gad came to David and said to him, “Thus says the LORD: ‘Choose for yourself, either three years of famine, or three months to be defeated by your foes with the sword of your enemies overtaking you, or else for three days the sword of the LORD—the plague in the land, with the angel of the LORD destroying throughout all the territory of Israel.’ Now consider what answer I should take back to Him who sent me.”
And 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.”
So the LORD sent a plague upon Israel, and seventy thousand men of Israel fell.