This content got low rating by people.
I waited patiently for the Lord ; he turned to me and heard my cry. He lifted me out of the slimy pit, out of the mud and mire; he set my feet on a rock and gave me a firm place to stand.
Psalms 40:1-2
David experienced danger many times in his life, often as threats from men who marked him out, specifically, for death. In those moments, he prayed to God and was rescued. In some moments, the danger seemed so dire that David saw no way out—like a person trapped in a deep, slimy hole with no escape. Poetically, David describes God saving him from that fate, resulting both in praise and an example from which others can learn.