12 For when you die and are buried with your ancestors, I will raise up one of your descendants, your own offspring, and I will make his kingdom strong. 13 He is the one who will build a house-a temple-for my name. And I will secure his royal throne forever. 14 I will be his father, and he will be my son. If he sins, I will correct and discipline him with the rod, like any father would do. 15 But my favor will not be taken from him as I took it from Saul, whom I removed from your sight. 16 Your house and your kingdom will continue before me for all time, and your throne will be secure forever.'" 17 So Nathan went back to David and told him everything the Lord had said in this vision.
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.