2 Samuel 7; 1 Chronicles 17
God had provided Israel rest from their enemies. As David was reflecting on this time of peace provided to the nation by God, it struck him that while the king of Israel dwelt in a nice palace made of the finest cedar, God dwelt in a house of curtains. The wilderness tabernacle remained the place where the Ark of the Covenant was placed. David desired to construct a better place for God to dwell among the people of Israel.
David informed Nathan the prophet of his desire to build God a better place and Nathan told him to go forth and do what God had laid on his heart. That night, God spoke to Nathan and told him to relay a message to David that it would not be David who would be God a new dwelling place on earth, but rather his son who would be given that task. This statement further reiterated what God had been declaring, namely that the throne of David would endure forever, something we know to be a fact given Jesus was of the line of David and rules for all eternity.
David received the word of the Lord from Nathan and responded by praising the name of the Lord for even considering David to be His servant. God’s name would be magnified in the earth by the construction of this temple which as we know would be constructed by David’s son Solomon.