Psalms 54:2-7

2 Hear my prayer, O God; give ear to the words of my mouth.
3 For insolent men have risen against me, ruthless men seek my life; they do not set God before them. [Selah]
4 Behold, God is my helper; the Lord is the upholder of my life.
5 He will requite my enemies with evil; in thy faithfulness put an end to them.
6 With a freewill offering I will sacrifice to thee; I will give thanks to thy name, O LORD, for it is good.
7 For thou hast delivered me from every trouble, and my eye has looked in triumph on my enemies.

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.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.