While King David was living in his house, the LORD gave him peace with all his enemies around him.
So the king said to the prophet Nathan, "Look, I'm living in a house made of cedar, while the ark of God remains in the tent."
Nathan told the king, "Do everything you have in mind, because the LORD is with you."
But that same night the LORD spoke his word to Nathan:
"Say to my servant David, 'This is what the LORD says: Are you the one who will build me a house to live in?
I haven't lived in a house from the day I took Israel out of Egypt to this day. Instead, I moved around in a tent, the tent [of meeting].
In all the places I've moved with all the Israelites, did I ever ask any of the judges of Israel whom I ordered to be shepherds of my people Israel why they didn't build me a house of cedar?'
"Now this is what you will say to my servant David: 'This is what the LORD of Armies says: I took you from the pasture where you followed sheep so that you could be the leader of my people Israel.
I was with you wherever you went, and I destroyed all your enemies in front of you. I will make your name famous like the names of the greatest people on earth.
I will make a place for my people Israel and plant them there. They will live in their own place and not be troubled anymore. The wicked will no longer oppress them as they used to do
ever since I appointed judges to rule my people Israel. So I will give you peace with all your enemies. I, the LORD, tell you that I will make a house for you.
"'When the time comes for you to lie down in death with your ancestors, I will send one of your descendants, [one] who will come from you. I will establish his kingdom.
He will build a house for my name, and I will establish the throne of his kingdom forever.
I will be his Father, and he will be my Son. If he sins, I will punish him with a rod and with blows inflicted by people.
But I will never stop showing him my love as I did to Saul, whom I took out of your way.
Your royal house will remain in my presence forever. Your throne will be established forever.'"
Nathan told David all these words and everything he had seen.
King David went into the tent and sat in front of the LORD. "Who am I, Almighty LORD," he asked, "and why is my house so important that you have brought me this far?
And even this you consider to be a small act, Almighty LORD. You've also spoken about the distant future of my house. Almighty LORD, this is the teaching about the man.
"What more can I, David, say to you, Almighty LORD, since you know me so well!
You've done this great thing because of your promise and your own desire. You made it known to me.
"That is why you are great, LORD God. There is no one like you, and there is no other god except you, as we have heard with our own ears.
Who is like your people Israel? It is the one nation on earth that God came to free in order to make its people his own, to make his name known, and to do great and wonderful things for them. You forced nations and their gods out of the way of your people, whom you freed from Egypt to be your own.
You created the people of Israel to be your people forever. And you, LORD, became their God.
"Now, LORD God, keep the promise you made to me and my house forever. Do as you promised.
Your name will be respected forever when [people] say, 'The LORD of Armies is God over Israel.' And the house of your servant David will be established in your presence.
You, LORD of Armies, God of Israel, have revealed it especially to me, saying, 'I will build a house for you.' That is why I have found the courage to offer this prayer to you.
"Almighty LORD, you are God, and your words are trustworthy. You promised me this good thing.
Now, please bless my house so that it may continue in your presence forever. Indeed, you, Almighty LORD, have promised it. With your blessing my house will be blessed forever."