David composed this Psalm in the middle of anguish and emotional pain. Much like Psalm 102:2 when he lamented, ” Don’t hide Your face from me when I’m in distress.” David cried out for God’s response and help… all the while remembering that God is faithful and merciful to hear his pleas. (Psalm 17:6) There is then renewed boldness in David’s prayer, for he knows that God is his righteousness (Jeremiah 23:6), will turn His ear towards him (Psalm 88:2), and will graciously listen and respond (Psalm 84:8).