4 But that same night the word of the Lord came to Nathan, 5 "Go and tell my servant David, 'Thus says the Lord: Would you build me a house to dwell in? 6 I have not lived in a house since the day I brought up the people of Israel from Egypt to this day, but I have been moving about in a tent for my dwelling. 7 In all places where I have moved with all the people of Israel, did I speak a word with any of the judges[1] of Israel, whom I commanded to shepherd my people Israel, saying, "Why have you not built me a house of cedar?"' 8 Now, therefore, thus you shall say to my servant David, 'Thus says the Lord of hosts, I took you from the pasture, from following the sheep, that you should be prince over my people Israel. 9 And I have been with you wherever you went and have cut off all your enemies from before you. And I will make for you a great name, like the name of the great ones of the earth. 10 And I will appoint a place for my people Israel and will plant them, so that they may dwell in their own place and be disturbed no more. And violent men shall afflict them no more, as formerly, 11 from the time that I appointed judges over my people Israel. And I will give you rest from all your enemies. Moreover, the Lord declares to you that the Lord will make you a house. 12 When your days are fulfilled and you lie down with your fathers, I will raise up your offspring after you, who shall come from your body, and I will establish his kingdom. 13 He shall build a house for my name, and I will establish the throne of his kingdom forever. 14 I will be to him a father, and he shall be to me a son. When he commits iniquity, I will discipline him with the rod of men, with the stripes of the sons of men, 15 but my steadfast love will not depart from him, as I took it from Saul, whom I put away from before you. 16 And your house and your kingdom shall be made sure forever before me.[2] Your throne shall be established forever.'" 17 In accordance with all these words, and in accordance with all this vision, Nathan spoke to David.

Matthew Henry's Commentary on 2 Samuel 7:4-17

Commentary on 2 Samuel 7:4-17

(Read 2 Samuel 7:4-17)

Blessings are promised to the family and posterity of David. These promises relate to Solomon, David's immediate successor, and the royal line of Judah. But they also relate to Christ, who is often called David and the Son of David. To him God gave all power in heaven and earth, with authority to execute judgment. He was to build the gospel temple, a house for God's name; the spiritual temple of true believers, to be a habitation of God through the Spirit. The establishing of his house, his throne, and his kingdom for ever, can be applied to no other than to Christ and his kingdom: David's house and kingdom long since came to an end. The committing iniquity cannot be applied to the Messiah himself, but to his spiritual seed; true believers have infirmities, for which they must expect to be corrected, though they are not cast off.