1 Kings 8:18 in the King James Version
And the LORD said unto David my father, Whereas it was in thine heart to build an house unto my name, thou didst well that it was in thine heart.
Context
17 “Now it was in the heart of David my father to build a house for the name of the LORD, the God of Israel.
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 out of your body, he shall build the house for my name.’