17 until I went into the sanctuary of God; then I discerned their end. 18 Truly you set them in slippery places; you make them fall to ruin. 19 How they are destroyed in a moment, swept away utterly by terrors! 20 Like a dream when one awakes, O Lord, when you rouse yourself, you despise them as phantoms.

21 When my soul was embittered, when I was pricked in heart, 22 I was brutish and ignorant; I was like a beast toward you. 23 Nevertheless, I am continually with you; you hold my right hand. 24 You guide me with your counsel, and afterward you will receive me to glory. 25 Whom have I in heaven but you? And there is nothing on earth that I desire besides you. 26 My flesh and my heart may fail, but God is the strength[1] of my heart and my portion forever.

Matthew Henry's Commentary on Psalm 73:17-26

Commentary on Psalm 73:15-20

(Read Psalm 73:15-20)

The psalmist having shown the progress of his temptation, shows how faith and grace prevailed. He kept up respect for God's people, and with that he restrained himself from speaking what he had thought amiss. It is a sign that we repent of the evil thoughts of the heart, if we suppress them. Nothing gives more offence to God's children, than to say it is vain to serve God; for there is nothing more contrary to their universal experience. He prayed to God to make this matter plain to him; and he understood the wretched end of wicked people; even in the height of their prosperity they were but ripening for ruin. The sanctuary must be the resort of a tempted soul. The righteous man's afflictions end in peace, therefore he is happy; the wicked man's enjoyments end in destruction, therefore he is miserable. The prosperity of the wicked is short and uncertain, slippery places. See what their prosperity is; it is but a vain show, it is only a corrupt imagination, not substance, but a mere shadow; it is as a dream, which may please us a little while we are slumbering, yet even then it disturbs our repose.

Commentary on Psalm 73:21-28

(Read Psalm 73:21-28)

God would not suffer his people to be tempted, if his grace were not sufficient, not only to save them from harm, but to make them gainers by it. This temptation, the working of envy and discontent, is very painful. In reflecting upon it, the psalmist owns it was his folly and ignorance thus to vex himself. If good men, at any time, through the surprise and strength of temptation, think, or speak, or act amiss, they will reflect upon it with sorrow and shame. We must ascribe our safety in temptation, and our victory, not to our own wisdom, but to the gracious presence of God with us, and Christ's intercession for us. All who commit themselves to God, shall be guided with the counsel both of his word and of his Spirit, the best counsellors here, and shall be received to his glory in another world; the believing hopes and prospects of which will reconcile us to all dark providences. And the psalmist was hereby quickened to cleave the closer to God. Heaven itself could not make us happy without the presence and love of our God. The world and all its glory vanishes. The body will fail by sickness, age, and death; when the flesh fails, the conduct, courage, and comfort fail. But Christ Jesus, our Lord, offers to be all in all to every poor sinner, who renounces all other portions and confidences. By sin we are all far from God. And a profession Christ, if we go on in sin, will increase our condemnation. May we draw near, and keep near, to our God, by faith and prayer, and find it good to do so. Those that with an upright heart put their trust in God, shall never want matter for thanksgiving to him. Blessed Lord, who hast so graciously promised to become our portion in the next world, prevent us from choosing any other in this.