Thus my heart was grieved, and I was pricked in my reins.
The verse is David's confession of a grieved heart and inward pricking of conscience after he had judged God's ways as unequal. His distress had grown from envy toward the foolish when he looked at the prosperity of the wicked. He saw them possessing firm strength, with no bands in death, with no trouble as other men have, and increasing in riches, while those who truly love God are compassed about with difficulties and perplexities. He could not understand this contrast until he went into the sanctuary of God, where he understood their end. That end is that God sets the wicked in slippery places and casts them down into sudden desolation and terrors. When he saw this, his heart was grieved and pricked within, and he acknowledged that he had been foolish and ignorant, like a beast before God. Even so, he was continually with God and upheld, held by His right hand. Through this he learned that it is good to draw near to God and to put trust in the Lord God.
Thus the heart was grieved and the inner being pierced with deep remorse and conviction over foolish and ignorant thought before God. The pain came from stumbling over God's justice and envying the foolish at the prosperity of the wicked, who are not troubled or plagued like others and have more than heart could wish, while the righteous are plagued and chastened until cleansing the heart seems vain and the thought too grievous to bear. Relief came only when he went into the sanctuary of God and understood their latter end as destruction, which turned complaint to delight in God and trust that God will guide him and afterward receive him to glory. God does not settle accounts in this life, so affliction is no sign of His displeasure and ease is no proof of acceptance, for a future Judgment will vindicate His justice, casting the wicked from slippery places to sudden desolation while the suffering saints delight in abundance of peace to all eternity and the wicked are cut off in utter extinction. God's people in the last days are liable to the same envy when they see others prosper in riches and honor while they are poor and despised for keeping the Sabbath, and they must likewise go to the sanctuary to understand the end of the wicked, with sorrow and compassion for the perishing that leads to kindness, honest self-examination, and seeking help from Heaven to do better. ## Grief and Its Setting The verse portrays inward anguish seated in the heart and inner being, a grieved heart pierced and pricked with inner pain that expresses deep remorse and conviction. In one setting the psalm belongs to Asaph during the reign of Hezekiah in the time of Isaiah's prophetic ministry, relating to the invasion of Sennacherib and the destruction of the Assyrian host, and it presses whether God is my King and whether I yield loyal allegiance to him. In another setting it belongs to David's confession and account of how his feet were almost gone and his steps had well-nigh slipped.