For David said, "My son Solomon is young and inexperienced, and the house that is to be built for the Lord must be exceedingly magnificent, famous and glorified throughout all lands; I will therefore make preparation for it." So David provided materials in great quantity before his death.
Then he called for his son Solomon and charged him to build a house for the Lord, the God of Israel.
David said to Solomon, "My son, I had planned 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 in my sight on the earth.
See, a son shall be born to you; he shall be a man of peace. I will give him peace from all his enemies on every side; for his name shall be Solomon, and I will give peace and quiet to Israel in his days.
References for 1 Chronicles 22:9
He shall build a house for my name. He shall be a son to me, and I will be a father to him, 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, so 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 ordinances that the Lord commanded Moses for Israel. Be strong and of good courage. Do not be afraid or dismayed.