Psalm 54 is related to both 1 Samuel 23 and 1 Samuel 26. The inscription gives us the account of Saul being informed by the Ziphites of David’s whereabouts. The inscription also informs us that it is a Maskil of David, which is a skilled instruction given at an annual celebration.
Verses 1-3-David pleas to God for protection from Saul and vindication of the actions of the Ziphites. He goes to the only one who can help; he turns to God who hears our prayers. Verse three gives us insight into David, Saul, and the Ziphites. David set his eyes on God, which implies the others were setting their eyes on worldly things. Saul’s focus was an earthly kingdom and power. The Ziphites may have had wealth, protection by Saul, or power as their focus. God wants us to always have Him as our focus. It is His desire to be preeminent in our lives (Colossians 1.18).
Selah. Where is your focus? Is it on what God has required, what you have desired, or what the world decides? The answer to that question can be found in to whom or what you “pray.” Can and do you go to God with the desires of your heart, with the pains that surround you, and with the joys you are given? Or, are you pleased with what you have, complain about your circumstances, and merely enjoy what comes your way? If the latter are true, your focus is on what you have desired or what the word decides. If you cannot go to God for the matters on your heart, it is due to sin. This sin is either that the activity or item in life is sinful or that your heart is placing you above Him.
Verses 4-5-David’s prayers are for his enemies to be destroyed. Read the comments on Psalm 140 for insight into our enemies. We either destroy that which stands against God or are destroyed by them. As an aside, when God changes the hearts of our enemies, He has destroyed them for now they are our friends.
Verses 6-7-Some view this as written after the fact that David received his answer and then offered the freewill offering as a sign of gratitude to God. It can be seen as faith where David knows that God delivers and will do so for him. In this knowledge David offers his sacrifice out of gratitude for whom God is not necessarily for what He has done or will do (Leviticus 22:21–23; 23:38).
Are you in the habit of thanking God for who He is rather than for what He has done or will do? David prayed to God to take control (He is sovereign), to protect (He is omnipotent), and to vindicate (He is Judge) because he knew that God hears our prayers (He is omniscient), God helps us (He is Good), and He can help us (He is sovereign). Our only response to all that He is to us is praise or thanksgiving (1 Thessalonians 5.12-24). As with David, God is our Helper (Hebrews 13.6) and our only response to that is to offer our freewill offering of praise to Him (Hebrews 13.15-16).