2 Samuel 24:16–25
16 And when tthe angel stretched out his hand toward Jerusalem uto destroy it, vthe Lord relented from the calamity and said to the angel uwho was working destruction among the people, “It is enough; now stay your hand.” And tthe angel of the Lord was by the threshing floor of wAraunah the Jebusite. 17 Then David spoke to the Lord when he saw the angel who was striking the people, and said, “Behold, I have sinned, and I have done wickedly. But these sheep, what have they done? Please let your hand be against me and against my father’s house.”
18 And Gad came that day to David and said to him, “Go up, raise an altar to the Lord on the threshing floor of xAraunah the Jebusite.” 19 So David went up at Gad’s word, as the Lord commanded. 20 And when Araunah looked down, he saw the king and his servants coming on toward him. And Araunah went out and paid homage to the king with his face to the ground. 21 And Araunah said, “Why has my lord the king come to his servant?” David said, “To buy the threshing floor from you, in order to build an altar to the Lord, that the plague ymay be averted from the people.” 22 Then Araunah said to David, “Let my lord the king take and offer up what seems good to him. Here are the oxen for the burnt offering and the zthreshing sledges and the yokes of the oxen for the wood. 23 All this, O king, Araunah gives to the king.” And Araunah said to the king, “May the Lord your God aaccept you.” 24 But the king said to Araunah, “No, but I will buy it from you for a price. I will not offer burnt offerings to the Lord my God that cost me nothing.” So David bought the threshing floor and the oxen for fifty shekels7 of silver. 25 And David built there an altar to the Lord and offered burnt offerings and peace offerings. bSo the Lord responded to the plea for the land, and the plague was averted from Israel.