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.3
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.2
Tap any highlighted phrase to jump to the commentary that unpacks it.

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.
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.
Further study
- The Hebrew text of Psalm 142 with Rashi, Ibn Ezra, and other classical commentators side by side - useful for siach (v. 2, the “complaint” poured out), for nephesh (the “soul” no man cared for in v. 4 and prayed out of prison in v. 7), and for cheleq (v. 5, the LORD as David's “portion”).
- Psalm 142 ↔ Psalm 16 · Luke 4 · Acts 2Intertextual BibleTraces the threads tying Psalm 142 to the rest of Scripture - the LORD named as a person's portion (Ps. 16:5 beside v. 5), the captives set free by the Anointed One (Luke 4:18 answering v. 7), and the soul brought up out of the prison of death in the resurrection (Acts 2:24-27).
- Psalm 142 - Translators' NotesNET BibleThe NET Bible's detailed footnotes on Psalm 142 - the meaning of the heading Maschil… A Prayer when he was in the cave, the force of “refuge failed me” (literally, perished from me) in verse 4, and the imagery of being brought out of “prison” in verse 7.
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.