2 Samuel 24:18

18 That day Gad came to David and said to him, "Go up and erect an altar to the Lord on the threshing floor of Araunah the Jebusite."

2 Samuel 24:18 In-Context

16 But when the angel stretched out his hand toward Jerusalem to destroy it, the Lord relented concerning the evil, and said to the angel who was bringing destruction among the people, "It is enough; now stay your hand." The angel of the Lord was then by the threshing floor of Araunah the Jebusite.
17 When David saw the angel who was destroying the people, he said to the Lord, "I alone have sinned, and I alone have done wickedly; but these sheep, what have they done? Let your hand, I pray, be against me and against my father's house."
18 That day Gad came to David and said to him, "Go up and erect an altar to the Lord on the threshing floor of Araunah the Jebusite."
19 Following Gad's instructions, David went up, as the Lord had commanded.
20 When Araunah looked down, he saw the king and his servants coming toward him; and Araunah went out and prostrated himself before the king with his face to the ground.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.