2 Samuel 7:1-13 New King James Version (NKJV)
God’s Covenant with David
7 Now it came to pass when the king was dwelling in his house, and the Lord had given him rest from all his enemies all around, 2 that the king said to Nathan the prophet, “See now, I dwell in a house of cedar, but the ark of God dwells inside tent curtains.”
3 Then Nathan said to the king, “Go, do all that is in your heart, for the Lord is with you.”
4 But it happened that night that the word of the Lord came to Nathan, saying, 5 “Go and tell My servant David, ‘Thus says the Lord: “Would you build a house for Me to dwell in? 6 For I have not dwelt in a house since the time that I brought the children of Israel up from Egypt, even to this day, but have moved about in a tent and in a tabernacle. 7 Wherever I have moved about with all the children of Israel, have I ever spoken a word to anyone from the tribes of Israel, whom I commanded to shepherd My people Israel, saying, ‘Why have you not built Me a house of cedar?’ ” ’ 8 Now therefore, thus shall you say to My servant David, ‘Thus says the Lord of hosts: “I took you from the sheepfold, from following the sheep, to be ruler over My people, over Israel. 9 And I have been with you wherever you have gone, and have [a]cut off all your enemies from before you, and have made you a great name, like the name of the great men who are on the earth. 10 Moreover I will appoint a place for My people Israel, and will plant them, that they may dwell in a place of their own and move no more; nor shall the sons of wickedness oppress them anymore, as previously, 11 since the time that I commanded judges to be over My people Israel, and have caused you to rest from all your enemies. Also the Lord [b]tells you that He will make you a [c]house.
12 “When your days are fulfilled and you rest with your fathers, I will set up your seed after you, who will come from your body, and I will establish his kingdom. 13 He shall build a house for My name, and I will establish the throne of his kingdom forever.
2 Samuel 7:1-13 New International Version (NIV)
God’s Promise to David
7 After the king was settled in his palace and the Lord had given him rest from all his enemies around him, 2 he said to Nathan the prophet, “Here I am, living in a house of cedar, while the ark of God remains in a tent.”
3 Nathan replied to the king, “Whatever you have in mind, go ahead and do it, for the Lord is with you.”
4 But that night the word of the Lord came to Nathan, saying:
5 “Go and tell my servant David, ‘This is what the Lord says: Are you the one to build me a house to dwell in? 6 I have not dwelt in a house from the day I brought the Israelites up out of Egypt to this day. I have been moving from place to place with a tent as my dwelling. 7 Wherever I have moved with all the Israelites, did I ever say to any of their rulers whom I commanded to shepherd my people Israel, “Why have you not built me a house of cedar?”’
8 “Now then, tell my servant David, ‘This is what the Lord Almighty says: I took you from the pasture, from tending the flock, and appointed you ruler over my people Israel. 9 I have been with you wherever you have gone, and I have cut off all your enemies from before you. Now I will make your name great, like the names of the greatest men on earth. 10 And I will provide a place for my people Israel and will plant them so that they can have a home of their own and no longer be disturbed. Wicked people will not oppress them anymore, as they did at the beginning 11 and have done ever since the time I appointed leaders[a] over my people Israel. I will also give you rest from all your enemies.
“‘The Lord declares to you that the Lord himself will establish a house for you: 12 When your days are over and you rest with your ancestors, I will raise up your offspring to succeed you, your own flesh and blood, and I will establish his kingdom. 13 He is the one who will build a house for my Name, and I will establish the throne of his kingdom forever.
1 Kings 8:17 New International Version (NIV)
17 “My father David had it in his heart to build a temple for the Name of the Lord, the God of Israel.