1 Chronicles 22:6-8
6 Then David called for his son, Solomon, and instructed him to build a house for the Eternal God of Israel.
David: 7 My son, I had intended to build a house honoring the reputation of the Eternal One my God, 8 but the Eternal spoke to me.
The blood on David’s hands makes him ritually impure to build a holy structure and house like the Jerusalem temple.
Eternal One: You have shed much blood and waged great wars, My wars. But because of your conquests and the amount of blood you spilled on My behalf, you will not build a house honoring My reputation.