Continuing a chronological Bible study:
(Psalm 18:1) (To the chief musician, of David, the servant of the Lord, who spoke to the Lord the words of this song in the day the Lord delivered him from the hand of all his enemies and from the hand of Saul. And he said,) "I will love You, O Lord, my strength."
The song that David spoke to the Lord in 2 Samuel 22, after the Lord had delivered him from his enemies round about and preserved him as he enlarged his kingdom, became the 18th Psalm. David prefaced it by first declaring his love for his Lord whom he considered his very strength. He could not have accomplished his victories without Him.
(2) The Lord is my rock and my fortress and my deliverer; my God, my strength, in whom I will trust, my buckler, and the horn of my salvation, my high tower.
The Lord was David's rock, his unmoving support, his fortress and defense and protection, and also his deliverer, delivering him out of the hands of danger and his enemies. He would trust in the Lord, his very strength, his shield, and the horn of his salvation as the horn of a wild beast that pushes, scatters, and destroys its enemies, and saves him. He was his high tower, not only his place of defense, but out of reach of his enemies and where he could easily see danger approaching.
(3) I will call upon the Lord to be praised; so shall I be saved from my enemies.
David would call upon his Lord in times of need, the Lord who was worthy to be praised because of His goodness and mercy, and He would save him from his enemies.
(4) The sorrows of death compassed me, and the floods of ungodly men made me afraid.
Dangerous and deadly troubles surrounded David, and ungodly men came upon him like a flood and made him afraid.
(5) The sorrows of hell compassed me about; the snares of death prevented me.
As explored in the song in 2 Samuel 22, the word translated as "sorrows" meant more specifically "cords" and by implication, might indicate "sorrows." But the meaning is more like the cords of hell were pulling David down, and the snares of deadly traps confronted him.
(6) In my distress I called upon the Lord and cried to my God; He heard my voice out of His temple, and my cry came before Him into His ears.
When in distress, David had called upon his Lord who heard him from His heavenly temple.
(7) Then the earth shook and trembled; the foundations also of the hills moved and were shaken because He was angry.
Then God in His anger appeared on David's behalf in a glorious manner, to the terror and confusion of all his enemies, which is compared to an earthquake.
(8) There went up a smoke out of His nostrils, and fire out of His mouth devoured; coals were kindled by it.
All these seem to be figurative expressions denoting the greatness of God's anger.
(9) He bowed the heavens also and came down, and darkness was under His feet.
By producing thick and dark clouds, the heavens would seem to come down to the earth. The Lord would be enveloped in the darkness as no one is able to see Him, but His presence would undoubtedly be known.
(10) And He rode upon a cherub and did fly; yea, He did fly upon the wings of the wind.
God rode upon His cherubs, elsewhere called His chariots (Psalm 68:17). I believe the sense is that He used His thousands of angels to exact His will, and everything is at His disposal as is the wind.
(11) He made darkness His secret place; His pavilion round about him were dark waters and thick clouds of the skies.
Again, the Lord was enveloped in the darkness, thick clouds and dark watery fog, as no one is able to see Him.
(12) At the brightness before Him, His thick clouds passed, hail and coals of fire. (13) The Lord also thundered in the heavens, and the Highest gave His voice, hail and coals of fire.
The Lord is pictured as coming in a violent storm. He was enveloped in darkness and then shot out bright lightning. He thundered in the heavens and rained down hailstones and coals of fire.
(14) Yea, He sent out His arrows and scattered them, and He shot out lightnings and discomfited them.
The Lord sent out His thunderbolts and lightning and confused and scattered His enemies.
(15) Then the channels of waters were seen, and the foundations of the world were discovered at Your rebuke, O Lord, at the blast of the breath of Your nostrils.
The unseen places were revealed when the Lord blasted His rebuke.
(16) He sent from above, He took me, He drew me out of many waters. (17) He delivered me from my strong enemy and from those who hated me, for they were too strong for me.
David gave all credit to the Lord for lifting him out of his troubles and delivering him from his enemies, for he knew they were too strong for him to have done it on his own.
(18) They prevented me in the day of my calamity, but the Lord was my stay.
David's enemies had confronted him and intercepted his way in his time of distress, but the Lord was his support.
(19) He brought me forth also into a large place; He delivered me because He delighted in me.
The Lord brought David into a wide open place of freedom from his straits. It pleased the Lord to deliver David, the man He had chosen to lead His people, the man after His own heart.
(20) The Lord rewarded me according to my righteousness; according to the cleanness of my hands has he recompensed me. (21) For I have kept the ways of the Lord and have not wickedly departed from my God. (22) For all His judgments were before me, and I did not put away His statutes from me. (23) I was also upright before Him, and I kept myself from my iniquity. (24) Therefore has the Lord recompensed me according to my righteousness, according to the cleanness of my hands in His eyesight.
David made it sound like it was because of his own goodness that the Lord rewarded him and delivered him. It was not because of David's works but because of his heart that wanted to follow his Lord; that is what the Lord rewarded. However, I give David a little leniency here because before Jesus, all people had was God's law and His commandments to obey them, and he desired to do that because he loved his Lord, and that was what pleased the Lord and made Him delight in saving him.
(25) With the merciful, You will show Yourself merciful; with an upright man You will show Yourself upright. (26) With the pure You will show Yourself pure, and with the froward, You will show Yourself froward.
The Lord metes to everyone the same measure which he metes out to others (Luke 6:38), and therefore He will perform mercy and truth to those who are merciful and true to others. However, that means He will also be contrary to those who are contrary to Him.
(27) For You will save the afflicted people but will bring down high looks.
The Lord saves the afflicted and oppressed, but He hates the proud (Proverbs 6:16-17, 16:5), and He will bring them down.
(28) For You will light my candle; the Lord my God will enlighten my darkness.
The Lord would light David's candle as He was the light of his life. He would enlighten his darkness, shedding light on his paths, imparting His light to David's understanding.
(29) For by You I have run through a troop, and by my God I have leaped over a wall.
I believe the sense is that David had been able to break through the armed troops of his enemies and to scale the walls of their strongest fortresses because God had led and enabled him.
(30) God, His way is perfect; the word of the Lord is tried; He is a buckler to all those who trust in Him.
The Lord's way is perfect and just. His word has been tried and tested throughout the ages and has been proven to be true. Therefore, it is easy to have full trust in Him, and He is a shield and defense and protection to all those who do trust in Him.
(31) For who is God, save the Lord? Or who is a rock, save our God? (32) God, who girds me with strength and makes my way perfect.
David asked the rhetorical question about who was the one true God of the universe? It could be no one except his Lord Jehovah. No one else was the solid rock of shelter and protection. It was only God who gave him strength and made his ways perfect. No other silly god could do what his God, the one true God, could do.
(33) He makes my feet like hinds' and sets me upon my high places. (34) He teaches my hands to war so that a bow of steel is broken by my arms.
The Lord had made David's feet as swift and sure as deer's feet and set him on high out of reach of his enemies. He taught him how to war against his enemies, leading him in the way of the Lord who would achieve victory for him.
(35) You have also given me the shield of Your salvation, and Your right hand has held me up, and Your gentleness has made me great.
The Lord had shielded David and saved him. In a larger sense, He gave him the salvation that meant eternal life. The Lord had sustained David in times of trouble, and His kindness, gentleness, and patience, had made David great. He had brought him up from a low estate to be king of Israel.
(36) You have enlarged my steps under me, that my feet did not slip.
The Lord had made ample room for David's feet to walk without hindrance or obstruction.
(37) I have pursued my enemies and overtaken them; neither did I turn again till they were consumed. (38) I have wounded them that they were not able to rise; they are fallen under my feet.
David had pursued his enemies and overtaken them. He did not turn back until they were destroyed. Whether he killed them or just wounded them, they were no longer able to rise up against him. They had fallen under him.
(39) For You have girded me with strength to the battle; You have subdued under me those who rose up against me. (40) You have also given me the necks of my enemies that I might destroy them who hate me.
David gave all credit to the Lord for giving him strength for the battles and for subduing his enemies. The Lord Himself had given David the necks of his enemies, either to kill them or to put a yoke upon their necks to make them tributaries.
(41) They cried but none to save, to the Lord but He did not answer them.
David's enemies had cried out to their gods, but there were none who could save them. They even tried crying out to David's God, the one true God, but He would not answer them.
(42) Then I beat them small as the dust before the wind; I cast them out as the dirt in the streets.
David beat his enemies and scattered them like dust in the wind. He cast them out as dirt in the streets, disorganized, scattered, and left to be trodden down.
(43) You have delivered me from the strivings of the people; You have made me the head of the heathen; a people I have not known shall serve me.
The Lord had delivered David from the strivings of his own people. He had united Israel again under David. He had made him the head of the nations surrounding Israel; as tributaries, people he had never known would serve him.
(44) As soon as they hear of me, they shall obey me; the strangers shall submit themselves to me. (45) The strangers shall fade away and be afraid out of their close spaces.
As soon as his tributaries understood David's command, they would instantly comply with it. Foreign nations would fear David and diminish in numbers and in power until they completely faded away.
(46) The Lord lives, and blessed, my Rock, and let the God of my salvation be exalted.
The Lord Jehovah lives and is to be praised and blessed. He was David's rock, his refuge and protector, the source of all his help and salvation. He alone should be exalted above all.
(47) God who avenges me and subdues the people under me, (48) He delivers me from my enemies; yea, You lift me up above those who rise up against me; You have delivered me from the violent man.
God alone was the one who avenged David and subdued the people under him. He delivered him from his enemies, lifting him up out of reach of those who rose up against him. He delivered him from the violent man, which being singular, might mean the one behind all the enemies of David, Israel, and the Lord, Satan.
(49) Therefore will I give thanks to You, O Lord, among the heathen, and sing praises to Your name.
Because of all the great and wonderful things his Lord had done, David would sing His praises to all, even the heathen. This may be prophecy about Jesus Christ that the apostle Paul would later quote as being proof that the calling of the Gentiles (the heathen) was predicted, and that what then took place during his time was the fulfillment of that prediction.
(50) Great deliverance He gives to His king and shows mercy to His anointed, to David, and to his descendants forevermore.
The Lord had given David deliverance and continued to show mercy to the one He had chosen to be king of Israel, David. He would continue to show that mercy to his descendants forevermore as He promised him in 1 Chronicles 17:14.
This psalm was the same song of David from 2 Samuel 22 with very few differences. The Jewish rabbis have counted 74 differences between the two, most of them very minute. It is supposed that David himself may have changed it slightly when he sent this psalm to the chief musician.