12 When 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. 13 He shall build a house for my name, and I will establish the throne of his kingdom forever. 14 I will be his father, and he shall be my son. If he commits iniquity, I will chasten him with the rod of men, and with the stripes of the children of men; 15 but my loving kindness shall not depart from him, as I took it from Saul, whom I put away before you. 16 Your house and your kingdom shall be made sure forever before you. Your throne shall be established forever.”’” 17 According to all these words, and according to all this vision, so Nathan spoke to David.
Matthew Henry's Commentary on 2 Samuel 7:12-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.