David cried out to the LORD because no one else would listen. But he did not cry to God as a “second option.” Rather, he cried to God because the LORD is the only one who can give mercy (v. 1). The LORD is the only one who can be a true refuge and David’s portion (v. 5). David’s “prison” is not a government sanctioned jail, but rather an emotional and physical position of helplessness while he was in the cave fleeing from Saul. The goal for David’s plea is that he would “give thanks to your name” (v. 7). David did not want rescue just for his own sake, but for God’s praise.
We can cry out to God for rescue as well, depending on him and hoping in him, as the one refuge and only one who cares for our souls (v. 4). We do this not only when we are hiding in a cave from enemies, but also in the good times as well. We trust God because he is the only one who is trustworthy. He is our refuge because he is the only unchangeable thing in this universe.
The problem with us is that we do not always go to God for rescue. He is not always the one we pour out our complains and troubles to. We often run to the very thing that is causing us pain. We often run from things and seek solace in money, sex, sports, work, fame, or something else that gives us pleasure. We are not worthy to be vindicated. Thankfully, Jesus Christ has gone to the Father perfectly on our behalf. And ultimately, the Father has only perfectly vindicated Christ through his resurrection from the dead. David died, and stayed dead, but Christ rose from the dead. He pleaded with the Father for rescue, and the Father gave it on the third day. Because of this, we are able to go to God because Christ is our mediator who communicates with God for us (1 Tim. 2:5) and our perfect high priest who goes to God on our behalf (Heb. 4:14-16). Only when we look to Christ’s vindication will we ourselves find vindication, because it does not belong to us, but to him.