Psalms 17
Psalm 17 is titled simply A Prayer of David, and it reads like one - not a polished hymn for the choir but the urgent speech of a man in trouble, pressing his case to the only Judge who cannot be bribed or misled. From the first breath it has the feel of a courtroom: Hear the right, O LORD… let my sentence come forth from thy presence; let thine eyes behold the things that are equal. David is not asking for mercy on a guilty plea; he is asking for a fair hearing on a true one. He has been wronged, hunted, hemmed in by enemies, and he comes to God the way an innocent man comes to a righteous judge - certain that if only the case is heard rightly, it will come out right.3
What makes the prayer so striking is its confidence under examination. David does not shrink from God's scrutiny; he invites it. Thou hast proved mine heart; thou hast visited me in the night; thou hast tried me, and shalt find nothing. This is not the boast of a man who thinks himself sinless - the Psalms know too much about human frailty for that - but the clear conscience of one whose cause in this matter is just, who has refused revenge, kept his mouth from evil, and stayed off the paths of the destroyer. He can stand the testing because he has nothing hidden in this fight. And so, from a clean conscience, he asks to be held: Hold up my goings in thy paths, that my footsteps slip not.
Out of that appeal rises the heart of the psalm - a plea for shelter framed in two of the most tender pictures in all of Scripture. Keep me as the apple of the eye: guard me as closely as you guard the pupil, the most reflexively protected part of the body. Hide me under the shadow of thy wings: cover me as a bird covers her young. The danger is real and named without flinching - foes that compass me about like a lion greedy of his prey - but David's answer to them is not the sword; it is to crawl under the wing of God. And then the psalm lifts, in its final verse, above the whole struggle. The wicked have their portion in this life and want nothing beyond it; but as for me, David says, I will behold thy face… I shall be satisfied, when I awake, with thy likeness. The prayer that began in a courtroom ends at the edge of a hope no enemy can reach.
Tap any highlighted phrase to jump to the commentary that unpacks it.

Psalm 17:1-5 · A Prayer of DavidHear the Right, O LORD
1Hear the right, O LORD, attend unto my cry, give ear unto my prayer, that goeth not out of feigned lips. 2Let my sentence come forth from thy presence; let thine eyes behold the things that are equal. 3Thou 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. 4Concerning the works of men, by the word of thy lips I have kept me from the paths of the destroyer. 5Hold up my goings in thy paths, that my footsteps slip not.
The psalm opens not with praise but with a petition that has the ring of a courtroom: Hear the right, O LORD, attend unto my cry, give ear unto my prayer. Three times in the first line David asks to be heard - hear… attend… give ear - the piled-up urgency of a man who cannot afford to be ignored. But notice the first word he asks God to hear: not me, but the right. He is not begging for special favor; he is asking that the truth of his case be weighed. The next verse makes the setting explicit: let my sentence come forth from thy presence; let thine eyes behold the things that are equal. The word sentence is a legal verdict, and the things that are equal means what is fair, level, upright. David is doing something bold - he is asking God to render judgment, confident that a fair hearing is the very thing he needs most. Only a man with a clean conscience in the matter prays this way.
David anchors his plea to one quiet claim: his prayer goeth not out of feigned lips. The word translated feigned means deceitful, put on, a mask of words - the polished speech that says one thing while the heart means another. David insists his prayer is not that. He is not performing piety to win a verdict; he means what he says. This matters more than it first appears, because the danger in any plea of innocence is exactly this: that it becomes a performance, a careful self-defense crafted for effect. David heads it off at the door. There is no gap, he claims, between his lips and his heart in this prayer. And that integrity - the simple alignment of inside and outside - is what gives him the nerve to ask God to look closer, which is precisely what he does next.
It would be easy to misread verse 3 as a claim of sinlessness, and it is not. David is not saying he has never sinned; the man who wrote against thee, thee only, have I sinned (Ps. 51:4) knew better than anyone the depth of his own failures. What he claims here is narrower and truer: that in this matter - this conflict, these enemies, this temptation to repay evil with evil - his cause is clean. Thou… shalt find nothing; I am purposed that my mouth shall not transgress. He has set himself against the obvious sin of the wronged man, which is to lash out, to slander, to take revenge with the tongue. And he traces his clean record to its source: by the word of thy lips I have kept me from the paths of the destroyer (v. 4). It is not native strength that has held him; it is God's word, taken in and obeyed, that has kept his feet off the violent road his enemies walk. The integrity he pleads is borrowed integrity - a life kept clean by clinging to what God has said.
The first movement closes not with a boast but with a request that quietly admits how fragile even an upright life is: Hold up my goings in thy paths, that my footsteps slip not. Having just said he has kept himself from the destroyer's paths, David immediately asks God to do the keeping - to hold up his steps so they do not slide. It is the prayer of someone walking a narrow trail along a steep place, asking for a steadying hand. There is no contradiction between “I have kept myself” (v. 4) and “hold me up” (v. 5); they are two sides of one honest life. David has truly walked the right road, and he knows full well he cannot keep walking it without help. The clean conscience of the first verses does not produce self-reliance - it produces a deeper dependence. The more seriously a person takes the path, the more they feel how easily a foot can slip, and the more they pray to be held.
Psalm 17:6-12Hide Me Under the Shadow of Thy Wings
6I have called upon thee, for thou wilt hear me, O God: incline thine ear unto me, and hear my speech. 7Shew 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. 8Keep me as the apple of the eye, hide me under the shadow of thy wings, 9From the wicked that oppress me, from my deadly enemies, who compass me about. 10They are inclosed in their own fat: with their mouth they speak proudly. 11They have now compassed us in our steps: they have set their eyes bowing down to the earth; 12Like as a lion that is greedy of his prey, and as it were a young lion lurking in secret places.
The second movement opens with a settled certainty that the first movement's testing has earned: I have called upon thee, for thou wilt hear me, O God. The reason David expects to be heard is not his own worthiness but a simple confidence in God's character - for thou wilt hear me. And then comes the great appeal of the psalm: Shew thy marvellous lovingkindness, O thou that savest by thy right hand them which put their trust in thee. Notice how David describes the God he prays to: not by His power in the abstract, but by what that power habitually does - He savest… them which put their trust in thee. David is not asking God to do something out of character; he is asking God to be exactly who He has always been, to do for him what He does for all who shelter in Him. The plea rests not on novelty but on pattern: this is what You do for the trusting, and I am trusting.
The word the KJV renders lovingkindness in verse 7 is one of the great words of the Hebrew Scriptures - the steadfast, loyal love of one who has bound himself to another and will not let go. David asks God to shew it, to make it marvellous - literally to set it apart, to do something wonderful with it. And he ties it to God's right hand, the hand of saving strength: O thou that savest by thy right hand. Here are the two things David most needs held together - tender, faithful love on the one hand, and the strong arm to act on it on the other. A love with no power to rescue would be only sympathy; a power with no love would be only force. David appeals to the God in whom they are one: a faithful love that is also a saving hand. That is what he asks to see made marvellous in his own desperate case.
The second image of verse 8 is gentler still: hide me under the shadow of thy wings. The picture is a bird gathering her young beneath her in the face of danger - the chicks scrambling under the warm dark of the mother's outstretched wing, hidden, covered, pressed close to the one strong enough to shield them. It is among the most maternal images Scripture ever uses for God, and it sits with deliberate tenderness right beside the harsh reality David is about to describe. The wings also carry an echo of the place of worship, where the carved cherubim stretched their wings over the mercy seat - so to hide under the shadow of thy wings is to run for sanctuary, to take refuge where God Himself dwells. David is hemmed in by killers, and his instinct is not to reach for a weapon but to reach for cover - to become small and hidden under something far bigger and stronger than himself. The strength he wants is not his own strength returned; it is the strength of being covered.
Only now, sheltered under the wing, does David turn and look squarely at what is hunting him - and he does not minimize it. From the wicked that oppress me, from my deadly enemies, who compass me about (v. 9). They have surrounded him; the noose is drawn. He describes their hard self-satisfaction - they are inclosed in their own fat: with their mouth they speak proudly (v. 10) - the image of men so padded with their own success that nothing reaches their conscience, whose comfortable cruelty comes out as arrogant speech. And then the most frightening picture: like as a lion that is greedy of his prey, and as it were a young lion lurking in secret places (v. 12). The enemy is a predator - patient, hungry, crouched in the shadows, waiting for the moment to spring. It is worth seeing that David names the danger in full after he has prayed for shelter, not before. Faith does not require pretending the lion is a kitten. David sees the teeth clearly. He has simply already run to the only refuge that can outmatch them.
Psalm 17:13-15I Shall Be Satisfied, When I Awake
13Arise, O LORD, disappoint him, cast him down: deliver my soul from the wicked, which is thy sword: 14From 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. 15As for me, I will behold thy face in righteousness: I shall be satisfied, when I awake, with thy likeness.
The prayer turns active and bold: Arise, O LORD, disappoint him, cast him down: deliver my soul from the wicked. Arise is old battle language - the cry raised whenever the ark of God set out, Rise up, LORD, and let thine enemies be scattered (Num. 10:35). David asks God to take the field, to disappoint the enemy - to get in front of him, to thwart the spring of the lion before it lands. But look carefully at how David frames the wicked: deliver my soul from the wicked, which is thy sword… from men which are thy hand, O LORD. Even his enemies, he says, are somehow thy sword, thy hand - instruments within God's larger purpose, not powers operating outside His reach. This is no personal vendetta in which David asks God to take sides in a private quarrel. He hands the whole matter over to God's justice, trusting that even the threat against him is not beyond God's control. The rescue he asks for is real and urgent, but it is asked in the confidence that nothing - not even the lion at his throat - lies outside the hand of God.
Verse 14 draws a portrait of the enemy that is, in its own way, more sobering than the lion. These are men of the world, which have their portion in this life. The word portion is the key - it is the share, the allotment, the inheritance a person receives. And the whole of their portion, David says, is in this life. They are not destitute; quite the opposite. God has filled their belly with his hid treasure; they are full of children and leave wealth to their grandchildren. By every visible measure they are the successful ones. And that is exactly the point David is quietly making: they have received their reward in full, here and now, and they want nothing beyond it. Their horizon stops at the grave. Everything they have is real, and everything they have is temporary - a portion entirely spent within the borders of this life. David looks at the people who seem to be winning and sees, underneath the abundance, a poverty: they have settled for a portion that ends.
The psalm reaches its summit on two words of deliberate contrast: As for me. Over against the men of the world with their portion in this life, David sets his own portion, and it could not be more different. As for me, I will behold thy face in righteousness: I shall be satisfied, when I awake, with thy likeness. Where they crave treasure, David craves a face - God's own face, turned toward him. Where they are filled with hid treasure, David expects to be satisfied with something no treasure can buy: God's likeness. The word satisfied is the language of a full meal, of hunger finally and completely met - the deep contentment David knows the wicked will never find in all their abundance, because they are feeding on the wrong thing. And the satisfaction he names is twofold: to see God (behold thy face) and to be made like God (with thy likeness). The two go together. To see Him truly is to be changed by the sight - to wake not only into His presence but into His very likeness, remade in the seeing. This is the hope that has carried the faithful through every dark night: that beyond the sleep there is a waking, and in the waking, a Face, and in the Face, a transformation that satisfies forever.
Further study
- The Hebrew text of Psalm 17 with Rashi, Ibn Ezra, and other classical commentators side by side - useful for bachan (v. 3, “to test, to assay” as metal in the fire), ishon (v. 8, the “little man” of the eye, the pupil), and tsel kenaphecha (v. 8, “the shadow of thy wings”).
- Psalm 17 ↔ Deuteronomy 32 · Psalm 16 · 1 John 3Intertextual BibleTraces the verbal threads tying Psalm 17's “apple of the eye” and sheltering wings to the eagle-song of Deuteronomy 32:10-11, the waking hope of Psalm 16:9-11, and the promise that we shall see God and be made like Him (1 John 3:2).
- Psalm 17 - Translators' NotesNET BibleThe NET Bible's detailed footnotes on Psalm 17 - the legal force of the opening plea, the night-testing imagery of verse 3, the difficult Hebrew of verse 14 about men whose “portion is in this life,” and the resurrection overtones many read in the “awaking” of verse 15.
Where this echoes in Scripture
Hear the Right, O LORD
- Psalm 139:23-24Search me, O God, and know my heart: try me, and know my thoughts.The same fearless invitation to be searched (v. 3) - offering even the hidden self to God.
- Proverbs 17:3The fining pot is for silver... but the LORD trieth the hearts.The assayer’s fire behind bachan (v. 3): God tests the heart as metal is proved.
- Job 23:10When he hath tried me, I shall come forth as gold.The testing that reveals rather than destroys - the same hope David brings to the night-trial (v. 3).
- 1 Peter 2:22-23Who did no sin, neither was guile found in his mouth... when he was reviled, reviled not again.The One whose lips were truly unfeigned (v. 1) and whose mouth never transgressed (v. 3).
Hide Me Under the Shadow of Thy Wings
- Deuteronomy 32:10-11He kept him as the apple of his eye. As an eagle... spreadeth abroad her wings.The source of both images in verse 8 - the apple of the eye and the sheltering wings, first sung over Israel.
- Psalm 91:4He shall cover thee with his feathers, and under his wings shalt thou trust.The same shelter David seeks (v. 8), given as a promise to all who dwell in God.
- Matthew 23:37How often would I have gathered thy children together, even as a hen gathereth her chickens under her wings.The sheltering wing of verse 8 on the lips of Jesus - His own longing over His people.
- Psalm 22:13They gaped upon me with their mouths, as a ravening and a roaring lion.The hunting lion of verse 12, taken up by the One compassed about at the cross.
I Shall Be Satisfied, When I Awake
- Psalm 16:9-11My flesh also shall rest in hope... thou wilt shew me the path of life.The companion hope behind “when I awake” (v. 15): the body laid down and not abandoned.
- 1 John 3:2When he shall appear, we shall be like him; for we shall see him as he is.David’s twofold longing fulfilled (v. 15): we shall see Him, and be made like Him.
- Daniel 12:2Many of them that sleep in the dust of the earth shall awake.The same verb, qits (v. 15): the waking on the far side of the sleep of death.
- Psalm 73:25-26Whom have I in heaven but thee?... God is the strength of my heart, and my portion for ever.The opposite of a portion that ends in this life (v. 14): God Himself as the portion forever.