1 Chronicles 22:6-13 ESV
Then he called for Solomon his son and charged him to build a house for the LORD, the God of Israel. David said to Solomon, “My son, I had it in my heart to build a house to the name of the LORD my God. But the word of the LORD came to me, saying, ‘You have shed much blood and have waged great wars. You shall not build a house to my name, because you have shed so much blood before me on the earth. Behold, a son shall be born to you who shall be a man of rest. I will give him rest from all his surrounding enemies. For his name shall be Solomon, and I will give peace and quiet to Israel in his days. He shall build a house for my name. He shall be my son, and I will be his father, and I will establish his royal throne in Israel forever.’
“Now, my son, the LORD be with you, so that you may succeed in building the house of the LORD your God, as he has spoken concerning you. Only, may the LORD grant you discretion and understanding, that when he gives you charge over Israel you may keep the law of the LORD your God. Then you will prosper if you are careful to observe the statutes and the rules that the LORD commanded Moses for Israel. Be strong and courageous. Fear not; do not be dismayed.
ESV: English Standard Version 2016