A psalm of personal trust in God, in a time of trial and affliction.
v1-5: A personal psalm, 'I', 'me', 'my' appear 18 times in these verses. The psalmist has a personal, first-hand, experience of God. David had hidden in the stronghold (1 Sam 22.4) and in the cave (1 Sam 24.3), finding a "rock of refuge" and a "strong fortress"; he saw that God was his rock and his fortress. He committed himself safely into God's hands.
v6-8: David knew God's mercies in his trials, see also 2 Sam 24.14, where he testified that God's mercies are great. At the same time, he avoided close contact with those who worshipped idols. Such would have an unholy affect on our lives.
v9-13: David's sufferings point us forward to Christ's sufferings, and they remind us too of Job's and Jeremiah's sufferings, see Job 16.12-13; 19.13-17.
Christ was made a reproach of the people, despised by men, abandoned by friends, slandered, conspired against, murdered; I can never say that He has not endured what I may experience.
Persecution is often the deliberate act of wicked men; this was Christ's experience also; Mark 3.6; 14.1.
v14-16: The response to the attacks of the ungodly, first by prayer; a renewed dependence on God. Although all our times are in His hands, we can and must pray specifically about our circumstances. We do not look to man to bless, but trust in God, that His face will shine.
The psalmist finds he has enemies, some are visible and some are invisible. What is true for the OT saint is also true for the NT saint.
v17-18: The second response is to express confidence that God will judge the wicked. Wickedness will be returned on the head of the wicked; this is not a prayer of personal vengeance but of personal vindication, as the enemy is put to silence.
v19-20: Personal confidence in God in the midst of troubles. God has great goodness laid up for His people. There is the secret place of His presence (Ps91.1; Luke 9.18; John 14.23); there is a closer walk, a deeper experience to be enjoyed. The psalmist refers to "accusing tongues," which theme is common in the Psalms. We should be aware of the powerful effect of our words.
v21-22: The testimony of deliverance; God's wonderful love demonstrated. Notice too the danger of hasty words, Matt 12.36-37; they are often unwise, unkind, or untrue. Though God may not show us His face, He will lend us His ear.
v23-24: There is no reason to doubt the faithfulness of God; here is love and faith and hope for us (1 Cor 13.13).