2 Samuel 24:18-25

David Builds an Altar

18And Gad came that day to David and said to him, “Go up, raise an altar to the Lord on the threshing floor of aAraunah the Jebusite.” 19So David went up at Gad’s word, as the Lord commanded. 20And 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. 21And 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 bmay be averted from the people.” 22Then 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 cthreshing sledges and the yokes of the oxen for the wood. 23All this, O king, Araunah gives to the king.” And Araunah said to the king, “May the Lord your God daccept you.” 24But 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 shekels
A  shekel was about 2/5 ounce or 11 grams
of silver.
25And David built there an altar to the Lord and offered burnt offerings and peace offerings. fSo the Lord responded to the plea for the land, and the plague was averted from Israel.

Copyright information for ESV