But David’s heart (conscience) troubled him after he had counted the people. David said to the LORD, “I have sinned greatly in what I have done. But now, O LORD, please take away the sin of Your servant, for I have acted very foolishly.” When David got up in the morning, the word of the LORD came to the prophet Gad, David’s seer, saying, “Go and say to David, ‘Thus says the LORD, “I am giving you three choices; select one of them for yourself, and I will do it to you.” ’ ” So Gad came to David and told him, and said to him, “Shall seven years of famine come to you in your land? Or will you flee three months before your enemies as they pursue you? Or shall there be three days of pestilence (plague) in your land? Now consider this and decide what answer I shall return to Him who sent me.” Then David said to Gad, “I am in great distress. Let us fall into the hands of the LORD, for His mercies are great, but do not let me fall into the hands of man.”
So the LORD sent a pestilence (plague) [lasting three days] upon Israel from the morning until the appointed time, and seventy thousand men of the people from Dan to Beersheba died. When the [avenging] angel stretched out his hand toward Jerusalem to destroy it, the LORD relented from the disaster and said to the angel who destroyed the people, “It is enough! Now relax your hand.” And the angel of the LORD was by the threshing floor of Araunah the Jebusite. When David saw the angel who was striking down the people, he spoke to the LORD and said, “Behold, I [alone] am the one who has sinned and done wrong; but these sheep (people of Israel), what have they done [to deserve this]? Please let Your hand be [only] against me and my father’s house (family).”
Then Gad [the prophet] came to David that day and said to him, “Go up, set up an altar to the LORD on the threshing floor of Araunah the Jebusite [where you saw the angel].” So David went up according to Gad’s word, as the LORD commanded. Araunah looked down and saw the king and his servants crossing over toward him; and he went out and bowed before the king with his face toward the ground. Araunah said, “Why has my lord the king come to his servant?” And David said, “To buy the threshing floor from you, to build an altar to the LORD, so that the plague may be held back from the people.” Araunah said to David, “Let my lord the king take and offer up whatever seems good to him. Look, here are oxen for the burnt offering, and threshing sledges and the yokes of the oxen for the wood. All of this, O king, Araunah gives to the king.” And Araunah said to the king, “May the LORD your God be favorable to you.” But the king said to Araunah, “No, but I will certainly buy it from you for a price. I will not offer burnt offerings to the LORD my God which cost me nothing.” So David purchased the threshing floor and the oxen for fifty shekels of silver. David built an altar to the LORD there, and offered burnt offerings and peace offerings. So the LORD was moved [to compassion] by [David’s] prayer for the land, and the plague was held back from Israel.