Psalms 132:12

If thy children will keep my covenant and my testimony that I shall teach them, their children shall also sit upon thy throne for evermore.

Psalm 132 was likely written by Solomon after the temple was built and may have been sung at its dedication. The psalm is connected with Solomon's palace and temple, where the king's throne stood in the palace judgment hall and the ark of the covenant stood in the temple's holy of holies. The verse recounts God's wonderful goodness and His promises to Israel, showing His power to save and to keep and His goodness in His dealings with the children of men.

The verse makes the continuation of David's royal line conditional: only if David's children keep God's covenant and the testimony He teaches them will their children sit upon David's throne forevermore. The promise of an enduring kingdom was confirmed to Solomon, but obedience was required, and building the temple could not excuse disobedience or shield the people from judgment. David charged Solomon to keep the commandments so that God's word would continue, that if his children took heed to walk before Him in truth with all their heart and soul there would not fail a man on the throne of Israel. After the house of the Lord was finished God warned Solomon that if he or his children turned from following Him and would not keep His commandments and statutes, Israel would be cut off out of the land given them.

The throne of David was established at Mount Zion and Jerusalem and will be there forever as the capital of the Kingdom of God, for the Lord chose Zion for His habitation and rest forever where He dwells and David's kingdom flourishes. The verse records God's sworn oath to David that of the fruit of his body according to the flesh He would raise up Christ to sit on David's throne, which is the throne Christ inherits and reigns on forever. Since David had been dead and buried for centuries when later prophecies spoke of David reigning in the future, every promised future reign of David points to the reign of Christ on the throne of his father David. The verse belongs to the promises of an eternal reign of righteousness, whose full fulfillment required the Lord's resurrection.