Now it came about when the king lived in his house, and the LORD had given him rest on every side from all his enemies, that the king said to Nathan the prophet, “See now, I dwell in a house of cedar, but the ark of God dwells within tent curtains.” Nathan said to the king, “Go, do all that is in your mind, for the LORD is with you.”
But in the same night the word of the LORD came to Nathan, saying, “Go and say to My servant David, ‘Thus says the LORD, “Are you the one who should build Me a house to dwell in? For I have not dwelt in a house since the day I brought up the sons of Israel from Egypt, even to this day; but I have been moving about in a tent, even in a tabernacle. Wherever I have gone with all the sons of Israel, did I speak a word with one of the tribes of Israel, which I commanded to shepherd My people Israel, saying, ‘Why have you not built Me a house of cedar?’ ” ’
Now therefore, thus you shall say to My servant David, ‘Thus says the LORD of hosts, “I took you from the pasture, from following the sheep, to be ruler over My people Israel. I have been with you wherever you have gone and have cut off all your enemies from before you; and I will make you a great name, like the names of the great men who are on the earth. I will also appoint a place for My people Israel and will plant them, that they may live in their own place and not be disturbed again, nor will the wicked afflict them any more as formerly, even from the day that I commanded judges to be over My people Israel; and I will give you rest from all your enemies. The LORD also declares to you that the LORD will make a house for you. When your days are complete and you lie down with your fathers, I will raise up your descendant after you, who will come forth from you, and I will establish his kingdom. He shall build a house for My name, and I will establish the throne of his kingdom forever. I will be a father to him and he will be a son to Me; when he commits iniquity, I will correct him with the rod of men and the strokes of the sons of men, but My lovingkindness shall not depart from him, as I took it away from Saul, whom I removed from before you. Your house and your kingdom shall endure before Me forever; your throne shall be established forever.” ’ ” In accordance with all these words and all this vision, so Nathan spoke to David.