After David was settled in his palace and had peace with his enemies, he wanted to build a temple for the Lord (2 Samuel 7:1–2). The prophet Nathan first told David to do as he wanted. But then God told Nathan that David would not be the one to build His temple. Instead, God promised to build a house for David. This promise included a prediction that Solomon would build the temple. But it also spoke of the coming Messiah, the Son of David who would reign forever (2 Samuel 7:4–17). David responded in humility and awe: "Who am I, Sovereign Lord, and what is my family, that you have brought me this far?" (2 Samuel 7:18; see 2 Samuel 7:18–29 for David's entire prayer). Before he died, David made preparations for the temple. God’s reason for not allowing David to build the temple was that he had shed so much blood, but David’s son would be a man of peace and not a man of war. Solomon would build the temple (1 Chronicles 22)