Historical commentary by Matthew Henry. The wording and interpretations below belong to the original source.
The Happiness of the Righteous.
We are here taught to give glory to God,
I. For the great things he has done for his people, for his people Israel, of old and of late: He has shown his people the power of his works ( v. 6 ), in what he has wrought for them; many a time he has given proofs of his omnipotence, and shown them what he can do, and that there is nothing too hard for him to do. Two things are specified to show the power of his works: —1. The possession God gave to Israel in the land of Canaan, that he might give them, or in giving them, the heritage of the heathen. This he did in Joshua's time, when the seven nations were subdued, and in David's time, when the neighbouring nations were many of them brought into subjection to Israel and became tributaries to David. Herein God showed his sovereignty, in disposing of kingdoms as he pleases, and his might, in making good his disposals. If God will make the heritage of the heathen to be the heritage of Israel, who can either arraign his counsel or stay his hand? 2. The many deliverances which he wrought for his people when by their iniquities they had sold themselves into the hand of their enemies ( v. 9 ): He sent redemption unto his people, not only out of Egypt at first, but often afterwards; and these redemptions were typical of the great redemption which in the fulness of time was to be wrought out by the Lord Jesus, that redemption in Jerusalem which so many waited for.
II. For the stability both of his word and of his works, which assure us of the great things he will do for them. 1. What God has done shall never be undone. He will not undo it himself, and men and devils cannot ( v. 7 ): The works of his hand are verity and judgment ( v. 8 ), that is, they are done in truth and uprightness; all he does is consonant to the eternal rules and reasons of equity, all according to the counsel of his wisdom and the purpose of his will, all well done and therefore there is nothing to be altered or amended, but his works are firm and unchangeable. Upon the beginning of his works we may depend for the perfecting of them; work that is done properly will last, will neither go to decay nor sink under the stress that is laid upon it. 2. What God has said shall never be unsaid: All his commandments are sure, all straight and therefore all steady. His purposes, the rule of his actions, shall all have their accomplishment: Has he spoken, and will he not make it good? No doubt he will; whether he commands light or darkness, it is done as he commands. His precepts, the rule of our actions, are unquestionably just and good, and therefore unchangeable and not to be repealed; his promises and threatenings are all sure, and will be made good; nor shall the unbelief of man make either the one or the other of no effect. They are established, and therefore they stand fast for ever and ever, and the scripture cannot be broken. The wise God is never put upon new counsels, nor obliged to take new measures, either in his laws or in his providences. All is said, as all is done, in truth and uprightness, and therefore it is immutable. Men's folly and falsehood make them unstable in all their ways, but infinite wisdom and truth for ever exclude retraction and revocation: He has commanded his covenant for ever. God's covenant is commanded, for he has made it as one that has an incontestable authority to prescribe both what we must do and what we must expect, and an unquestionable ability to perform both what he has promised in the blessings of the covenant and what he has threatened in the curses of it, Ps. cv. 8 .