‏ 1 Kings 8:17-18

17 aNow it was in the heart of David my father to build a house for the name of the Lord, the God of Israel. 18But the Lord said to David my father, ‘Whereas it was in your heart to build a house for my name, you did well that it was in your heart.
Copyright information for ESV