Thou hast rebuked the proud - This was done often in the case of David; and was true also in reference to the Babylonians, who held the Israelites in subjection, and whose kings were among the proudest of human beings. Instead of זדים zedim, the proud, some MSS. read זרים zarim, strangers, and one reads גוים goyim, the heathen; and so the Syriac.
Thou hast rebuked the proud - Compare Psalm 9:5. The meaning is, that God had done this not by word but by deed. The proud were everywhere rebuked by God, alike in his law, and in his providence. The connection seems to be this: the psalmist is meditating on the benefit or advantage of keeping the law of God; of a humble, pious life. His mind naturally adverts to what would be the opposite of this - or to this in contrast with an opposite course of life; and he says, therefore, that God had in every way, and at all times, manifested his displeasure against that class of people. Such a course, therefore, must be attended with misery; but the course which he proposed to pursue must be attended with happiness.
That are cursed - The accursed; those who are regarded and treated by God as accursed, or as objects of his disapprobation.
Which do err from thy commandments - Who depart from thy law. The sense is, “I propose and intend to keep thy law. As a motive to this, I look at the consequences which must follow from disobeying it. I see it everywhere in the divine treatment of those who do disregard that law. They are subject to the displeasure - the solemn rebuke - of God. So all must be who disregard his law; and it is my purpose not to be found among their number.”