1 Chronicles 21:18-28

ISV(i) 18 David’s Altar
The angel of the LORD told Gad to tell David that David was to go up and build an altar to the LORD on the threshing floor that belonged to Ornan the Jebusite. 19 So David went up, obeying Gad’s directive that he had spoken in the name of the LORD. 20 Ornan turned around and saw the angel. While his four sons with him ran away to hide, Ornan continued to thresh wheat. 21 As David approached Ornan, Ornan looked around and observed David, left the threshing floor, and fell to the ground before David with his face on the ground.
22 David told Ornan, “Give me the threshing floor as a site to build an altar to the LORD on it. Give it to me at its full price, so the plague may be averted from the people.”
23 But Ornan replied to David, “Take it! Let your majesty the king do whatever seems like a good idea to him. Look here! I’m giving the oxen for burnt offerings, the threshing machinery for the wood, and the wheat for a grain offering. I’m giving all of it.”
24 But King David told Ornan, “No. I will buy them for the full price because I will not offer to the LORD what is yours or offer burnt offerings that cost me nothing.”
25 So David paid Ornan 600 shekels weight worth in gold for the site, 26 built an altar to the LORD there, and presented burnt offerings and peace offerings. He called out to the LORD, and he answered him from heaven with fire on the altar of burnt offerings. 27 After this, the LORD spoke to the angel, who then sheathed his sword.
28 From that time on, after David had observed that the LORD had answered him at the threshing floor of Ornan the Jebusite, he made his sacrifices there.