1 Chronicles 21:28-30 NIV

28 At that time, when David saw that the LORD had answered him on the threshing floor of Araunah the Jebusite, he offered sacrifices there.
29 The tabernacle of the LORD, which Moses had made in the desert, and the altar of burnt offering were at that time on the high place at Gibeon.1

References for 1 Chronicles 21:29

30 But David could not go before it to inquire of God, because he was afraid of the sword of the angel of the LORD.