1 Chronicles 22:8-9 ESV

8 But the word of the LORD came to me, saying, 1'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.

References for 1 Chronicles 22:8

9 Behold, a son shall be born to you who shall be a man of rest. 2I will give him rest from all his surrounding enemies. 3For his name shall be Solomon, and I will give peace and quiet to Israel in his days.

References for 1 Chronicles 22:9