Psalms 54:2-7

2 O God, hear my prayer, Give ear to the sayings of my mouth,
3 For strangers have risen up against me And terrible ones have sought my soul, They have not set God before them. Selah.
4 Lo, God [is] a helper to me, The Lord [is] with those supporting my soul,
5 Turn back doth the evil thing to mine enemies, In Thy truth cut them off.
6 With a free will-offering I sacrifice to Thee, I thank Thy name, O Jehovah, for [it is] good,
7 For, from all adversity He delivered me, And on mine enemies hath mine eye looked!

Psalms 54:2-7 Meaning and Commentary

To the chief Musician on Neginoth, Maschil, [A Psalm] of David, when the Ziphims came and said to Saul, Doth not David hide himself with us? Of the word "neginoth," See Gill on "Ps 4:1," title; and of "maschil," See Gill on "Ps 32:1," title. The occasion of writing this psalm were the discoveries the Ziphims or Ziphites made to Saul of David being in their neighbourhood; which they did twice, as appears from 1 Samuel 23:14. Which of these gave occasion to the psalm is not certain; it is very likely that it was composed after both had been made. These Ziphims were the inhabitants of a city called Ziph, which was in the tribe of Judah, Joshua 15:55, near to which was a wilderness, which had its name from the city in which David was when they came to Saul with this news of him.
Young's Literal Translation is in the public domain.