David built an altar to Yahweh there, and offered burnt offerings and peace offerings, and called on Yahweh, and he answered him with fire from heaven on the altar of burnt offering.
In context
24But King David said to Ornan, “No, I will indeed buy it for its full price. I will not take what is yours for Yahweh, or offer a burnt offering that costs me nothing.” 25So David gave Ornan six hundred shekels of gold by weight for the site. 26David built an altar to Yahweh there, and offered burnt offerings and peace offerings, and called on Yahweh, and he answered him with fire from heaven on the altar of burnt offering. 27Then Yahweh spoke to the angel, and he returned his sword to its sheath. 28At that time, when David saw that Yahweh had answered him on the threshing floor of Ornan the Jebusite, he offered sacrifices there.