But the word of Yahweh came to me, saying, ‘You have shed much blood and fought great wars; you will not build a house for my name, because you have shed so much blood on the ground before me.
In context
6Then he called for Solomon his son, and charged him to build a house for Yahweh, the God of Israel. 7David said to Solomon, “My son, it was in my heart to build a house for the name of Yahweh my God. 8But the word of Yahweh came to me, saying, ‘You have shed much blood and fought great wars; you will not build a house for my name, because you have shed so much blood on the ground before me. 9See, a son will be born to you; he will be a man of rest, and I will give him rest from all his enemies on every side. For his name will be Solomon, and I will grant peace and quiet to Israel in his days. 10He will build a house for my name; he will be my son, and I will be his father, and I will establish the throne of his kingdom over Israel forever.’