Psalm 17: When Enemies Close In

Core Theme: For when you’re angry — at being hunted, slandered, or oppressed by people who have no fear of God, and you need to know that He sees the truth

Background

David wrote Psalm 17 as a prayer, and the heading says exactly that: “A Prayer of David.” The heading does not name the occasion. But the psalm itself paints the picture. David is surrounded by enemies who “compass me about” (v. 9), and he describes them like a lion “lurking in secret places” (v. 12). Many readers connect this with the years when Saul hunted David, though the text does not say so, so we should hold that connection loosely.

What stands out is the way David prays. He does not begin with the danger. He begins with an appeal to God as the one court that always gets it right, and he asks God to examine his heart. Only then does he describe the threat, ask for protection, and end on a note of quiet, settled hope.

The Psalm (KJV)

A Prayer of David.

  1. Hear the right, O LORD, attend unto my cry, give ear unto my prayer, that goeth not out of feigned lips.
  2. Let my sentence come forth from thy presence; let thine eyes behold the things that are equal.
  3. Thou hast proved mine heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing; I am purposed that my mouth shall not transgress.
  4. Concerning the works of men, by the word of thy lips I have kept me from the paths of the destroyer.
  5. Hold up my goings in thy paths, that my footsteps slip not.
  6. I have called upon thee, for thou wilt hear me, O God: incline thine ear unto me, and hear my speech.
  7. Shew thy marvellous lovingkindness, O thou that savest by thy right hand them which put their trust in thee from those that rise up against them.
  8. Keep me as the apple of the eye, hide me under the shadow of thy wings,
  9. From the wicked that oppress me, from my deadly enemies, who compass me about.
  10. They are inclosed in their own fat: with their mouth they speak proudly.
  11. They have now compassed us in our steps: they have set their eyes bowing down to the earth;
  12. Like as a lion that is greedy of his prey, and as it were a young lion lurking in secret places.
  13. Arise, O LORD, disappoint him, cast him down: deliver my soul from the wicked, which is thy sword:
  14. From men which are thy hand, O LORD, from men of the world, which have their portion in this life, and whose belly thou fillest with thy hid treasure: they are full of children, and leave the rest of their substance to their babes.
  15. As for me, I will behold thy face in righteousness: I shall be satisfied, when I awake, with thy likeness.

The heart of it

Psalm 17 is a prayer for someone who has been wronged and wants the matter settled in the right court. David does not ask the crowd, or his enemies, or even his own feelings to decide. He says, “Let my sentence come forth from thy presence; let thine eyes behold the things that are equal” (vv. 1-2). In other words, he wants God to look at it fairly, because he trusts that God will.

That is worth pausing over if you’ve been treated unjustly. People may never understand what happened to you, and some may believe the lies about you. But there is one who sees everything as it truly is, and He is not fooled by appearances or by those who speak well of themselves. David’s anger is not left to simmer. It becomes a prayer, directed to the only judge who can be trusted with it.

The psalm also makes a quiet but important contrast. The people who oppress David are “men of the world, which have their portion in this life” (v. 14). They seem to have everything: comfort, family, wealth. David’s portion is different, and he knows it. That contrast is where the psalm finds its peace.

Walking through it

Verses 1-5: Bring it to the right court. David asks God to examine him: “Thou hast proved mine heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing…” He is not claiming to be sinless, only innocent of what he is accused of and honest about where he stands. No one comes before God on the strength of their own record, as David himself writes elsewhere: “And enter not into judgment with thy servant: for in thy sight shall no man living be justified” (Psalm 143:2). A believer can stand with a clear conscience, because their standing rests on Christ and not on their own record.

Verses 6-9: Held as the apple of His eye. “Keep me as the apple of the eye, hide me under the shadow of thy wings…” These are tender images, a pupil guarded by the eyelid and a chick sheltered beneath a mother bird. They are also a promise God makes about His people: “…he that toucheth you toucheth the apple of his eye” (Zechariah 2:8). When someone harms you, they are not simply harming a stranger in God’s sight. They are harming someone He guards closely.

Verse 13: Leave the case with Him. “Arise, O LORD, disappoint him, cast him down…” David does not take revenge. He asks God to act, and in doing so, he follows the wisdom of Proverbs: “Say not thou, I will recompense evil; but wait on the LORD, and he shall save thee” (Proverbs 20:22). Notice too that even the wicked are called God’s “sword” and His “hand” in verses 13-14, a reminder that they are never outside His control.

Verse 15: The better portion. The psalm ends with a contrast. The wicked have their portion in this life, but David says, “As for me, I will behold thy face in righteousness: I shall be satisfied, when I awake, with thy likeness.” “When I awake” can be read as waking to a morning of vindication, and believers have long heard in it the hope of resurrection as well. Either way, his satisfaction comes from God Himself, not from seeing his enemies fall. John echoes this hope: “Beloved, now are we the sons of God, and it doth not yet appear what we shall be: but we know that, when he shall appear, we shall be like him; for we shall see him as he is” (1 John 3:2).

Carrying this forward

If the situation is behind you, Psalm 17 invites you to look back and see where God held you. You may not have felt it then, but being “hid under the shadow of his wings” does not always feel like safety while it is happening. Looking back, many believers can see the hand that kept them.

If you are in the middle of it, the psalm gives you a way to pray when your enemies feel close. Ask God to examine your heart, and be honest with Him about what He finds. Ask Him to guard you, then leave the outcome to Him. This does not mean pretending the threat isn’t real, and it does not mean ignoring practical steps to protect yourself. It means you are not carrying the verdict alone.

Psalm 17 does not promise that your enemies will vanish on your timeline. It promises something that cannot be taken from you: you are held as the apple of His eye, and you will one day be satisfied with His likeness. You can bring your anger to Him, and you can leave it in His hands.

Psalm 17

We’ve reviewed this video for sound doctrine, though not the channel’s other content.

Scroll to Top