Psalms 31:6-8

6 I have hated them that regard lying vanities: but I trust in the LORD.
7 I will be glad and rejoice in thy mercy: for thou hast considered my trouble; thou hast known my soul in adversities;
8 And hast not shut me up into the hand of the enemy: thou hast set my feet in a large room.

Psalms 31:6-8 Meaning and Commentary

To the chief Musician, a Psalm of David. This psalm, according to Arama, was composed by David when in Keilah; but, according to Kimchi and others, when the Ziphites proposed to deliver him up into the hands of Saul; and who, upon their solicitations, came down and surrounded him with his army, from whom in haste he made his escape, and to which he is thought to refer in Psalm 31:22. Theodoret supposes it was written by David when he fled from Absalom, and that it has some respect in it to his sin against Uriah, in that verse.
The King James Version is in the public domain.