David is now living in his house of cedar and tells the prophet Nathan that it does not seem right for the ark of the covenant to be under curtains. Nathan answers that he should do all that is in his heart. But that night the word of God comes to Nathan: David will not be the one to build the house, because since the exodus from Egypt the Lord has moved from tent to tent and never asked any of the judges to build him a house of cedar.
God then recalls what he has done for David: he took him from the pasture, from following the sheep, to be prince over his people, was with him wherever he went, cut off his enemies and will make him a great name. He also promises a place for Israel, where they will live without being disturbed. Then he announces that the Lord himself will build David a house. When David dies, the Lord will raise up one of his sons and establish his kingdom. He will build a house for the name of the Lord, and the Lord will establish his throne forever. God will be a father to him, and he will be a son, and God will not take away his steadfast love as he took it from Saul.
David goes in, sits before the Lord and prays. He asks who he is that God has brought him this far, confesses that there is none like the Lord and no people like Israel, and concludes by asking that the word spoken be fulfilled and that the Lord bless the house of David forever.