But after he had taken the census, David’s conscience began to bother him. And he said to the LORD, “I have sinned greatly by taking this census. Please forgive my guilt, LORD, for doing this foolish thing.”
The next morning the word of the LORD came to the prophet Gad, who was David’s seer. This was the message: “Go and say to David, ‘This is what the LORD says: I will give you three choices. Choose one of these punishments, and I will inflict it on you.’”
So Gad came to David and asked him, “Will you choose three years of famine throughout your land, three months of fleeing from your enemies, or three days of severe plague throughout your land? Think this over and decide what answer I should give the LORD who sent me.”
“I’m in a desperate situation!” David replied to Gad. “But let us fall into the hands of the LORD, for his mercy is great. Do not let me fall into human hands.”
So the LORD sent a plague upon Israel that morning, and it lasted for three days. A total of 70,000 people died throughout the nation, from Dan in the north to Beersheba in the south. But as the angel was preparing to destroy Jerusalem, the LORD relented and said to the death angel, “Stop! That is enough!” At that moment the angel of the LORD was by the threshing floor of Araunah the Jebusite.
When David saw the angel, he said to the LORD, “I am the one who has sinned and done wrong! But these people are as innocent as sheep—what have they done? Let your anger fall against me and my family.”
That day Gad came to David and said to him, “Go up and build an altar to the LORD on the threshing floor of Araunah the Jebusite.”
So David went up to do what the LORD had commanded him. When Araunah saw the king and his men coming toward him, he came and bowed before the king with his face to the ground. “Why have you come, my lord the king?” Araunah asked.
David replied, “I have come to buy your threshing floor and to build an altar to the LORD there, so that he will stop the plague.”
“Take it, my lord the king, and use it as you wish,” Araunah said to David. “Here are oxen for the burnt offering, and you can use the threshing boards and ox yokes for wood to build a fire on the altar. I will give it all to you, Your Majesty, and may the LORD your God accept your sacrifice.”
But the king replied to Araunah, “No, I insist on buying it, for I will not present burnt offerings to the LORD my God that have cost me nothing.” So David paid him fifty pieces of silver for the threshing floor and the oxen.
David built an altar there to the LORD and sacrificed burnt offerings and peace offerings. And the LORD answered his prayer for the land, and the plague on Israel was stopped.