PSALM 142
When Saul came into the cave where David lay concealed, this saint of God might upon such an occurrence have been either thrown into consternation, or led by his alarm into some unwarrantable step, it being common for persons in despair either to be prostrated with dismay, or driven into frenzy. But it appears from this Psalm that David retained his composure, relying with assured confidence upon God, and resigning himself to vows and prayers instead of taking any unauthorized steps.
A Prayer of David, giving instruction when he was in the cave.1
1 In the history of David we read particularly of the two caves in which he took shelter, that of Adullam, (1 Samuel 22:1,) and that of En-gedi, (1 Samuel 24:3.) The latter is generally supposed to be the cave here