Psalms 142:2-7

2 I pour out my complaint before him; I show before him my trouble.
3 When my spirit was overwhelmed within me, Thou knewest my path. In the way wherein I walk Have they hidden a snare for me.
4 Look on [my] right hand, and see; For there is no man that knoweth me: Refuge hath failed me; No man careth for my soul.
5 I cried unto thee, O Jehovah; I said, Thou art my refuge, My portion in the land of the living.
6 Attend unto my cry; For I am brought very low: Deliver me from my persecutors; For they are stronger than I.
7 Bring my soul out of prison, That I may give thanks unto thy name: The righteous shall compass me about; For thou wilt deal bountifully with me.

Psalms 142:2-7 Meaning and Commentary

Maschil of David; A Prayer when he was in the cave. Of the word "maschil," See Gill on "Ps 32:1," title. This psalm is called a prayer, as some others are, the ninetieth and hundred second psalms: and was composed by David when either in the cave of Adullam, 1 Samuel 22:1; or rather in the cave at Engedi, where he cut off Saul's skirt, 1 Samuel 24:3; as Jarchi and Kimchi think. The psalm represents the troubles of David, and of the Messiah his antitype, and is applicable to the church of God, or to any particular soul when in distress.
The American Standard Version is in the public domain.