1 Chronicles 22:8 says, "But this word of the Lord came to me: ‘You have shed much blood and have fought many wars. You are not to build a house for my Name, because you have shed much blood on the earth in my sight." (God talking to King David).
1 Chronicles 22:2 - 5
ESV - 2 David commanded to gather together the resident aliens who were in the land of Israel, and he set stonecutters to prepare dressed stones for building the house of God. 3 David also provided great quantities of iron for nails for the doors of the gates and for clamps, as well as bronze in quantities beyond weighing.
For follow-up discussion and general commentary on the topic. Comments are sorted chronologically.