And when thy days be fulfilled, and thou shalt sleep with thy fathers, I will set up thy seed after thee, which shall proceed out of thy bowels, and I will establish his kingdom. He shall build an house for my name, and I will stablish the throne of his kingdom for ever. I will be his father, and he shall be my son...
This is the foundation of messianic expectation. God promises David an eternal dynasty—a 'house' that will never end. The king will be God's 'son,' ruling on God's behalf.
But there's a profound irony: Israel asked for a king to be 'like other nations' (1 Samuel 8), and God warned them of the dangers. Now God takes this flawed institution and transforms it into a vehicle for eternal promise. The Davidic king becomes the template for the Messiah.
✝
✝