Psalms 142
Psalm 142 carries one of the most specific headings in the book: Maschil of David; A Prayer when he was in the cave. More than once David fled into caves to escape the king who was hunting him - the cave of Adullam, the strongholds in the wilderness of En-gedi - and this prayer rises out of that kind of darkness. A Maschil is a psalm meant to instruct, and the instruction here is hard-won: it teaches how a person prays when he has been driven to the very bottom and there is nowhere left to go but God.
The prayer divides cleanly in two. The first half is the cry itself, and it is startling in its honesty. David does not approach God with a composed speech; he pours himself out: I poured out my complaint before him; I shewed before him my trouble (v. 2). And he names the worst of it without flinching - the sense of being completely deserted: I looked on my right hand, and beheld, but there was no man that would know me: refuge failed me; no man cared for my soul (v. 4).
The right hand was where a defender stood; David looks there and finds it empty.
The second half turns, and the turn is the whole point. Nothing in his circumstances has changed - the enemies are still stronger, the cave is still dark - but David fastens onto the one thing that remains when everything else has failed: I cried unto thee, O LORD: I said, Thou art my refuge and my portion in the land of the living (v. 5). From there the prayer reaches forward in hope, asking not merely to be rescued but to be set free to praise: Bring my soul out of prison, that I may praise thy name: the righteous shall compass me about; for thou shalt deal bountifully with me (v. 7).
It is the prayer of a man hemmed in on every side who has discovered that the God he calls to is wider than the cave.
Tap any highlighted phrase to jump to the commentary that unpacks it.

People in this chapter
Psalm 142:1-4 · Maschil of David; A Prayer when he was in the caveI Poured Out My Complaint Before Him
1I cried unto the LORD with my voice; with my voice unto the LORD did I make my supplication. 2I poured out my complaint before him; I shewed before him my trouble. 3When my spirit was overwhelmed within me, then thou knewest my path. In the way wherein I walked have they privily laid a snare for me. 4I looked on my right hand, and beheld, but there was no man that would know me: refuge failed me; no man cared for my soul.
The prayer opens with sound: I cried unto the LORD with my voice; with my voice unto the LORD did I make my supplication (v. 1). The doubling of with my voice is not careless repetition - it insists on something. This is not the silent ache of a heart too crushed to speak, and it is not a tidy prayer composed for an audience. It is a cry, out loud, flung up into the dark of the cave.
There is a kind of trouble that drives a person to whisper, to go quiet, to turn inward and stop reaching out at all; David does the opposite. Pressed to the very bottom, he raises his voice unto the LORD - not to the walls, not to his own despair, not even to the few men with him, but to God. The first instinct of faith under pressure is not to perform composure but to call.
Before David tells us anything about his enemies or his fear, he tells us where his voice is aimed.
And here is what that cry contains: I poured out my complaint before him; I shewed before him my trouble (v. 2). Notice that David does not bring God a polished report or the brave version of how he is doing. He pours out - the word is one of emptying, tipping the whole vessel over until nothing is held back - and what comes out is a complaint, and trouble laid bare. This is one of the quiet permissions the Psalms keep granting: that God can be told the unedited thing.
We often assume prayer means presenting ourselves at our most composed, as though God could only receive us once we had managed our own distress. David assumes the reverse. He shews his trouble - he displays it, spreads it out in the open before God like a man emptying his pockets - precisely because the One he is showing it to can be trusted with all of it. The honesty is not a lapse of faith; it is an act of faith.
You only pour yourself out before someone you believe is listening.
Verse 3 reaches the lowest depth of the first half, and then says something astonishing about it: When my spirit was overwhelmed within me, then thou knewest my path. To be overwhelmed here is to be wrapped round and smothered, the spirit folding inward under a weight it cannot lift - the state in which a person loses the thread, no longer sees the way ahead, can barely go on. And yet, set right against that collapse, is a fact that does not depend on how David feels: then thou knewest my path. At the very moment he had lost sight of his own way, God had not lost sight of it.
The snare his enemies had privily laid - hidden, set in secret along the road he walked - was no secret to God. This is the hinge the whole psalm will turn on. David's knowledge of his situation has failed; God's knowledge of it has not. When the overwhelmed spirit can no longer trace the path, the comfort is not that the darkness lifts but that the path is still known - held in the sight of the One who never lost it.
And this cry from a deserted man reaches forward to One who was deserted more completely still. In the garden, the night He was betrayed, He began to be sore amazed, and to be very heavy; And saith unto them, My soul is exceeding sorrowful unto death (Mark 14:33-34) - His own three companions asleep a stone's throw off. When the soldiers came, all the disciples forsook him, and fled (Matt. 26:56); He had told them it would be so - ye shall be scattered, every man to his own, and shall leave me alone (John 16:32).
And on the cross, when even the comfort of heaven seemed withdrawn, He cried with a loud voice, My God, my God, why hast thou forsaken me? (Matt. 27:46). David, with no man at his right hand, foreshadows the Son of David at whose right hand, in the end, no man stood. The difference is everything: David could say no man cared for my soul, but the One who entered that abandonment did it on behalf of souls He cared for more than His own life - so that no one joined to Him would ever finally be left alone.
David assumes the opposite. He empties the whole vessel out in the open, the fear and the loneliness and the unfairness of it, because he believes the One he is pouring it out to can be trusted with all of it. So try this the next time you are at the bottom: do not pray the polite prayer. Pray the real one. Say the actual thing - the thing you would not say out loud to anyone else.
And hold onto verse 3 while you do it: even when your own spirit is too overwhelmed to see the way forward, thou knewest my path. You do not have to see the way for God to know it.
Psalm 142:5-7Thou Art My Refuge and My Portion
5I cried unto thee, O LORD: I said, Thou art my refuge and my portion in the land of the living. 6Attend unto my cry; for I am brought very low: deliver me from my persecutors; for they are stronger than I. 7Bring my soul out of prison, that I may praise thy name: the righteous shall compass me about; for thou shalt deal bountifully with me.
Now the prayer turns, and the turn is the heart of the psalm: I cried unto thee, O LORD: I said, Thou art my refuge and my portion in the land of the living (v. 5). Trace what just happened. In verse 4 David looked for refuge and found none - refuge failed me. Now he says: Thou art my refuge. The human refuge perished; God remains. The two words he reaches for are exact and weighty.
A refuge is a shelter, the rock you run behind when the storm or the enemy comes - protection from what is outside. But portion goes deeper. A man's portion was his share, his inheritance, the piece of the land that was his to live on; to call God his portion is to say that God is not merely his protection but his possession, his inheritance, the very thing he gets to keep and live on.
And the place where this holds true is named precisely: in the land of the living. Not only as a hope beyond the grave, but here, now, while he still draws breath in the cave. Stripped of allies, of safety, of everything, David discovers that what is left to him when all else is gone is not a thing but a Person - and that the Person is enough.
The turn to confidence does not mean the trouble is gone, and David does not pretend it is: Attend unto my cry; for I am brought very low: deliver me from my persecutors; for they are stronger than I (v. 6). This is faith and honesty held together in one breath. He has just called God his refuge and his portion - and in the very next line he admits he is brought very low and his enemies are stronger than I. There is no false bravado here, no claiming the victory is already in hand.
He looks his weakness full in the face: he cannot win this; his persecutors out-match him; he is at the end of his own strength. But that admission is precisely why he prays. It is the weak who cry deliver me, because the strong imagine they can deliver themselves. David's helplessness is not the enemy of his faith; it is the doorway to it. Having confessed that God is his portion, he can afford to confess that he himself is empty-handed - for the whole point of a portion is that it is given, not earned, and the whole point of a refuge is that you run to it precisely because you cannot stand in the open.
The Anointed One came precisely to bring imprisoned souls out. But the connection runs deeper than His ministry - it reaches to His own resurrection. For there was a prison lower than any cave, and into it He went: the prison of death itself. The apostle Peter declared that this prison could not hold Him - God raised Him up, having loosed the pains of death: because it was not possible that he should be holden of it (Acts 2:24), thou wilt not leave my soul in hell (Acts 2:27).
David prayed to be brought out of a prison and lived to praise; but there was One who went all the way down into the lowest prison and was brought up never to be imprisoned again. Because His soul was brought out, the prayer of verse 7 becomes a certainty for everyone joined to Him - and the closing note, thou shalt deal bountifully with me, turns out to be no wishful thinking but the settled future of those whom God's mercy holds.
The cornered man's hope was not too large. It was, if anything, smaller than the answer that came.
And notice where the prayer finally lands: not on a guarantee that the cave will open today, but on the character of God - thou shalt deal bountifully with me. That is a sentence you can pray when you cannot see the way out. When you are brought very low and the things against you really are stronger than you, the way through is not to manufacture confidence but to say the true thing about God: Thou art my refuge. Thou art my portion. Thou shalt deal bountifully with me. The circumstances may not have moved between the start of the prayer and the end of it.
But the one praying has - from looking at the empty right hand to looking at the God who is wider than the cave.
Where this echoes in Scripture
I Poured Out My Complaint Before Him
- Matthew 26:56Then all the disciples forsook him, and fled.The total abandonment of verse 4 - “no man cared for my soul” - met in the night the Son of David was deserted by all.
- Mark 14:33-34began to be sore amazed... My soul is exceeding sorrowful unto death.The overwhelmed spirit of verse 3 carried into Gethsemane, where the soul was sorrowful unto death.
- 1 Samuel 22:1David therefore departed thence, and escaped to the cave Adullam.The cave behind the psalm's heading - the place of hiding from which this prayer was poured out.
- 1 Samuel 1:15-16I have poured out my soul before the LORD... out of the abundance of my complaint and grief.The same word and the same act as verse 2 - Hannah pouring out her complaint before God.
Thou Art My Refuge and My Portion
- Psalm 16:5The LORD is the portion of mine inheritance and of my cup: thou maintainest my lot.The same confession as verse 5 - the LORD Himself named as a person's portion and inheritance.
- Luke 4:18he hath anointed me... to preach deliverance to the captives... to set at liberty them that are bruised.The prayer of verse 7 - “bring my soul out of prison” - answered in the Anointed One sent to free the captive.
- Acts 2:24Whom God hath raised up, having loosed the pains of death: because it was not possible that he should be holden of it.The deepest prison - death itself - unable to hold Him; the soul brought out, as verse 7 prays.
- Lamentations 3:24The LORD is my portion, saith my soul; therefore will I hope in him.The same word and confession as verse 5, made the ground of hope from the depths.
- Deuteronomy 18:1-2they shall have no inheritance among their brethren: the LORD is their inheritance.The priestly portion David claims for himself in verse 5 - to have God as one's inheritance and need no other.