Perplexity at the prosperity of the wicked; the solution of
the problem

This the first psalm of it shows. Truly God is good to Israel,
to such as are of a true heart: but the saint was perplexed at the
prosperity of the wicked, and his feet almost gone. The prosperous
ungodly are then described; the body of the people join them, and
the Most High is scorned; whereas the godly is continually
chastened, he had cleansed his hands then in vain. But in speaking
thus he would offend against the generation of God's children. Man
pondering on it, it was too painful. In the sanctuary of God, where
His mind was revealed, all became plain. As a dream when one
awakes, so all their pretensions would disappear when once God
awoke. The godly man complains of his want of divine sense in these
thoughts and feelings. Still, after all he was ever before God, and
God's right hand upheld him; guided by His counsel in that time of
darkness, when the glory shall have been revealed, he will be
received (read "after the glory, thou wilt receive me": compare
Zech. 2: 8). The result is blessed. He has. none in heaven but the
Lord, none on earth whom he desires beside Him: such is the effect
of trial. But his flesh and heart fail: that is nature. It must be
so, but God is the strength of his heart and his portion for
ever. The last two verses declare the result those far from
Jehovah, and apostates, perish; but it is good for the godly to
draw near to God. He has put his trust in Him when He did not show
Himself, that he might declare all His works when deliverance came;
for those blessed without trial afterwards will not learn this
knowledge of God.