2 Samuel 24:17-25
When David saw the angel who was striking down the people, he said to the LORD, "I am the one who has sinned and done wrong. These are but sheep. What have they done? Let your hand fall upon me and my family."
On that day Gad went to David and said to him, "Go up and build an altar to the LORD on the threshing floor of Araunah the Jebusite." So David went up, as the LORD had commanded through Gad. When Araunah looked and saw the king and his men coming toward him, he went out and bowed down before the king with his face to the ground.
Araunah said, "Why has my lord the king come to his servant?"
"To buy your threshing floor," David answered, "so I can build an altar to the LORD, that the plague on the people may be stopped."
Araunah said to David, "Let my lord the king take whatever pleases him and offer it up. Here are oxen for the burnt offering, and here are threshing sledges and ox yokes for the wood. O king, Araunah gives all this to the king." Araunah also said to him, "May the LORD your God accept you."
But the king replied to Araunah, "No, I insist on paying you for it. I will not sacrifice to the LORD my God burnt offerings that cost me nothing."
So David bought the threshing floor and the oxen and paid fifty shekels of silver for them. David built an altar to the LORD there and sacrificed burnt offerings and fellowship offerings. Then the LORD answered prayer in behalf of the land, and the plague on Israel was stopped.
Genesis 22:2, 9-14 -- 1300 years prior to David
Then God said, "Take your son, your only son, Isaac, whom you love, and go to the region of Moriah. Sacrifice him there as a burnt offering on one of the mountains I will tell you about." ...
When they reached the place God had told him about, Abraham built an altar there and arranged the wood on it. He bound his son Isaac and laid him on the altar, on top of the wood. Then he reached out his hand and took the knife to slay his son. But the angel of the LORD called out to him from heaven, "Abraham! Abraham!"
"Here I am," he replied.
"Do not lay a hand on the boy," he said. "Do not do anything to him. Now I know that you fear God, because you have not withheld from me your son, your only son."
Abraham looked up and there in a thicket he saw a ram caught by its horns. He went over and took the ram and sacrificed it as a burnt offering instead of his son. So Abraham called that place The LORD Will Provide. And to this day it is said, "On the mountain of the LORD it will be provided."
2 Chronicles 3:1 -- A generation after David
Then Solomon began to build the temple of the LORD in Jerusalem on Mount Moriah, where the LORD had appeared to his father David. It was on the threshing floor of Araunah the Jebusite, the place provided by David.