Read this passage and open each verse for the full verse feed and commentary tools.
11and [as] from the day that I commanded judges to be over my people Israel; and I will cause you to rest from all your enemies. Moreover Yahweh tells you that Yahweh will make you a house. 12When your days are fulfilled, and you shall sleep with your fathers, I will set up your seed after you, who shall proceed out of your bowels, and I will establish his kingdom. 13He shall build a house for my name, and I will establish the throne of his kingdom forever. 14I will be his father, and he shall be my son: if he commit iniquity, I will chasten him with the rod of men, and with the stripes of the children of men; 15but my lovingkindness shall not depart from him, as I took it from Saul, whom I put away before you. 16Your house and your kingdom shall be made sure for ever before you: your throne shall be established forever. 17According to all these words, and according to all this vision, so did Nathan speak to David.
2 Samuel 7:11-17 (WEB)