Albert Barnes' Notes on the Whole Bible - Psalms 140:12
I know that the Lord will maintain the cause of the afflicted - See the notes at Psalms 9:4. The psalmist here doubtless refers primarily to himself, as having a confident belief that the Lord would maintain “his” cause, or would defend “him.” At the same time he makes the statement general, implying that what would be done to him would be done to all in similar circumstances. The idea is that God, in all his attributes, in all his providential arrangements, in all his interpositions on earth,... read more
The Pulpit Commentary - Psalms 140:13
Surely the righteous shall give thanks unto thy Name; the upright shall dwell in thy presence. The result of God's punishment of the wicked, and deliverance of the righteous is naturally that the righteous give him thanks, frequent his courts, and "dwell," as it were, "in his presence." read more