When the king was settled in his palace, and the LORD had given him rest from all his surrounding enemies,
the king said to the prophet Nathan, "Look! I'm living in a cedar palace, but God's chest is housed in a tent!"
Nathan said to the king, "Go ahead and do whatever you are thinking, because the LORD is with you."
But that very night the LORD's word came to Nathan:
Go to my servant David and tell him: This is what the LORD says: You are not the one to build the temple for me to live in.
In fact, I haven't lived in a temple from the day I brought Israel out of Egypt until now. Instead, I have been traveling around in a tent and in a dwelling.
Throughout my traveling around with the Israelites, did I ever ask any of Israel's tribal leaders I appointed to shepherd my people: Why haven't you built me a cedar temple?
So then, say this to my servant David: This is what the LORD of heavenly forces says: I took you from the pasture, from following the flock, to be leader over my people Israel.
I've been with you wherever you've gone, and I've eliminated all your enemies before you. Now I will make your name great—like the name of the greatest people on earth.
I'm going to provide a place for my people Israel, and plant them so that they may live there and no longer be disturbed. Cruel people will no longer trouble them, as they had been earlier,
when I appointed leaders over my people Israel. And I will give you rest from all your enemies. And the LORD declares to you that the LORD will make a dynasty for you.
When the time comes for you to die and you lie down with your ancestors, I will raise up your descendant—one of your very own children—to succeed you, and I will establish his kingdom.
He will build a temple for my name, and I will establish his royal throne forever.
I will be a father to him, and he will be a son to me. Whenever he does wrong, I will discipline him with a human rod, with blows from human beings.
But I will never take my faithful love away from him like I took it away from Saul, whom I set aside in favor of you.
Your dynasty and your kingdom will be secured forever before me. Your throne will be established forever.
Nathan reported all of these words and this entire vision to David.