1 Chronicles 28:2-3 Then King David rose to his feet and said, 'Hear me, my brethren and my people: I had it in my heart to build a house of rest for the ark of the covenant of the LORD, and for the footstool of our God, and had made preparations to build it. But God said to me, ‘You shall not build a house for My name, because you have been a man of war and have shed blood.’
1 Chronicles 22:7-10 And David said to Solomon: “My son, as for me, it was in my mind 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 made great wars; you shall not build a house for My name, because you have shed much blood on the earth in My sight. Behold, a son shall be born to you, who shall be a man of rest; and I will give him rest from all his enemies all around. His name shall be Solomon, for I will give peace and quietness to Israel in his days. He shall build a house for My name, and he shall be My son, and I will be his Father; and I will establish the throne of his kingdom over Israel forever.’