When King David lived in his house (palace) and the LORD had given him rest from all his surrounding enemies, 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.” And Nathan said to the king, “Go, do everything that is in your heart, for the LORD is with you.”
But it happened that night that the word of the LORD came to Nathan, saying, “Go and tell My servant David, ‘Thus says the LORD, “Should you be the one to build Me a house in which to dwell? For I have not dwelt in a house since the day I brought the sons (descendants) of Israel up 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 Israelites, did I speak a word to any from the tribes of Israel, whom I commanded to shepherd My people Israel, asking, ‘Why have you not built Me a house of cedar?’ ” ’
So now, say this 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 that of the great men of the earth. I will appoint a place for My people Israel and will plant them, so that they may live in a place of their own and not be disturbed again. The wicked will not afflict them again, as formerly, even from the day that I appointed judges over My people Israel; and I will give you rest from all your enemies. The LORD also declares to you that He will make a house (royal dynasty) for you. When your days are fulfilled and you lie down [in death] with your fathers (ancestors), I will raise up your descendant after you, who shall be born to you, and I will establish his kingdom. He [is the one who] shall build a house for My Name and My Presence, and I will establish the throne of his kingdom forever. I will be his Father, and he shall be My son. When he commits iniquity (wrongdoing), I will discipline him with the rod of men and with the strokes of the sons of man.