1 Chronicles 22:5-9King James Version (KJV)
5 And David said, Solomon my son is young and tender, and the house that is to be builded for the Lord must be exceeding magnifical, of fame and of glory throughout all countries: I will therefore now make preparation for it. So David prepared abundantly before his death.
6 Then he called for Solomon his son, and charged him to build an house for the Lord God of Israel.
7 And David said to Solomon, My son, as for me, it was in my mind to build an house unto the name of the Lord my God:
8 But the word of the Lord came to me, saying, Thou hast shed blood abundantly, and hast made great wars: thou shalt not build an house unto my name, because thou hast shed much blood upon the earth in my sight.
9 Behold, a son shall be born to thee, who shall be a man of rest; and I will give him rest from all his enemies round about: for his name shall be Solomon, and I will give peace and quietness unto Israel in his days.