1 Kings 8:18

18 But 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:

1 Kings 8:18 In-Context

16 Since the day that I brought forth my people Yisra'el out of Mitzrayim, I chose no city out of all the tribes of Yisra'el to build a house, that my name might be there; but I chose David to be over my people Yisra'el.
17 Now it was in the heart of David my father to build a house for the name of the LORD, the God of Yisra'el.
18 But 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:
19 nevertheless you shall not build the house; but your son who shall come forth out of your loins, he shall build the house for my name.
20 The LORD has established his word that he spoke; for I am risen up in the room of David my father, and sit on the throne of Yisra'el, as the LORD promised, and have built the house for the name of the LORD, the God of Yisra'el.
The Hebrew Names Version is in the public domain.