The psalm begins with a statement the poet had to learn the hard way: truly God is good to Israel, to those who are pure in heart. But he immediately confesses that his feet had almost stumbled and his steps had nearly slipped, because he was envious of the arrogant when he saw the prosperity of the wicked.
Verses 4 to 12 describe those people. They have no pangs until death, their bodies are fat and they are not in trouble as others are. So pride is their necklace and violence their garment. They speak with malice, scoff and threaten loftily. Their mouths are set against the heavens and their tongues strut through the earth. They ask how God could know. Such are the wicked, always at ease, increasing in riches.
Verses 13 to 16 reflect the psalmist's pain: in vain he has kept his heart clean and washed his hands in innocence, for he is stricken all day long. If he had spoken in that way, he would have betrayed the generation of God's children. When he tried to understand it, it was a wearisome task, until he went into the sanctuary of God.
There he discerns their end: God sets them in slippery places and casts them down to ruin; in a moment they are destroyed, like a dream when one wakes. The psalmist confesses that his heart was embittered and that he was like a beast before God. Yet he is continually with God, and God holds his right hand. He will guide him with his counsel and afterward receive him to glory. Whom does he have in heaven but God? Though his flesh and heart fail, God is the strength of his heart and his portion forever. Those who are far from God will perish. For him, the good is to draw near to God, and he has made the Lord his refuge to tell of all his works.