There are several instances in the Old Testament (and one or two in the N/T) where we read that David was not allowed to build a temple for God:
- 1 Chronicles 22:8: "But the word of the LORD came to me, saying, ‘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 on the earth before Me" (NAS, emphasis added).
- 1 Chronicles 28:3: "But God said to me, ‘You shall not build a house for My name because you are a man of war and have shed blood’" (emphasis added).
Finally, David's son Solomon speaks to the people:
- 1 Kings 8:18-19: "But the LORD said to my father David, ‘Because it was in your heart to build a house for My name, you did well that it was in your heart. 19‘Nevertheless you [David] shall not build the house, but your son who will be born to you, he will build the house for My name.’"
Because David was a "man of war" — one directed by God to accomplish all of these things, he would not be allowed to build the temple. Rather, he would only be able to assemble the supplies for one. Given that David was "a man after God's own heart," why would being a "man of war" matter? (I understand that the name "Solomon" represents "peace" so perhaps this provides a clue?)