When David is settled in his house and the Lord has given him rest from all his enemies, he tells the prophet Nathan that he lives in a house of cedar while the ark of God stays in a tent. Nathan tells him to do all that is in his heart. But that night the word of the Lord comes to Nathan: God has never asked anyone for a house of cedar and has walked with his people in a tent since he brought them out of Egypt.
The Lord reminds David that he took him from the pasture, from following the sheep, to be prince over his people, that he has been with him wherever he went and has cut off his enemies. He promises to make his name great, to appoint a place for his people Israel where they can live in peace, and to give him rest. Then he declares that the Lord himself will make David a house. When David dies, the Lord will raise up one of his offspring, establish his kingdom, and he will build a house for his name. The Lord will establish the throne of his kingdom forever: he will be a father to him and he will be a son; if he sins, he will discipline him with the rod of men, but the Lord's steadfast love will not depart from him as it did from Saul. His house and kingdom will be made sure forever.
David goes in, sits before the Lord and prays: he asks who he is that God has brought him this far, acknowledges that God has also spoken of the distant future of his house, praises God because there is none like him, and asks him to confirm forever what he has promised, so that his name will be magnified. He ends by saying that the Lord's words are true and asks him to bless the house of his servant.