17 He made me free from my strong hater, and from those who were against me, because they were stronger than I. 18 They came on me in the day of my trouble; but the Lord was my support. 19 He took me out into a wide place; he was my saviour because he had delight in me.

20 The Lord gives me the reward of my righteousness, because my hands are clean before him. 21 For I have kept the ways of the Lord; I have not been turned away in sin from my God. 22 For all his decisions were before me, and I did not put away his laws from me. 23 And I was upright before him, and I kept myself from sin. 24 Because of this the Lord has given me the reward of my righteousness, because my hands are clean in his eyes. 25 On him who has mercy you will have mercy; to the upright you will be upright; 26 He who is holy will see that you are holy; but to the man whose way is not straight you will be a hard judge. 27 For you are the saviour of those who are in trouble; but eyes full of pride will be made low. 28 You, O Lord, will be my light; by you, my God, the dark will be made bright for me.

29 By your help I have made a way through the wall which was shutting me in; by the help of my God I have gone over a wall. 30 As for God, his way is completely good; the word of the Lord is tested; he is a breastplate for all those who put their faith in him. 31 For who is God but the Lord? or who is a Rock but our God? 32 God puts a strong band about me, guiding me in a straight way. 33 He makes my feet like roes' feet, and puts me on high places. 34 He makes my hands expert in war, so that a bow of brass is bent by my arms. 35 You have given me the breastplate of your salvation: your right hand has been my support, and your mercy has made me great. 36 You have made my steps wide under me, so that my feet are kept from slipping. 37 I go after my haters and overtake them; not turning back till they are all overcome. 38 I will give them wounds, so that they are not able to get up: they are stretched under my feet.

Matthew Henry's Commentary on Psalm 18:17-38

Commentary on Psalm 18:1-19

(Read Psalm 18:1-19)

The first words, "I will love thee, O Lord, my strength," are the scope and contents of the psalm. Those that truly love God, may triumph in him as their Rock and Refuge, and may with confidence call upon him. It is good for us to observe all the circumstances of a mercy which magnify the power of God and his goodness to us in it. David was a praying man, and God was found a prayer-hearing God. If we pray as he did, we shall speed as he did. God's manifestation of his presence is very fully described, Hebrews 5:7. God made the earth to shake and tremble, and the rocks to cleave, and brought him out, in his resurrection, because he delighted in him and in his undertaking.

Commentary on Psalm 18:20-28

(Read Psalm 18:20-28)

Those that forsake the ways of the Lord, depart from their God. But though conscious to ourselves of many a false step, let there not be a wicked departure from our God. David kept his eye upon the rule of God's commands. Constant care to keep from that sin, whatever it be, which most easily besets us, proves that we are upright before God. Those who show mercy to others, even they need mercy. Those who are faithful to God, shall find him all that to them which he has promised to be. The words of the Lord are pure words, very sure to be depended on, and very sweet to be delighted in. Those who resist God, and walk contrary to him, shall find that he will walk contrary to them, Leviticus 26:21-24. The gracious recompence of which David spoke, may generally be expected by those who act from right motives. Hence he speaks comfort to the humble, and terror to the proud; "Thou wilt bring down high looks." And he speaks encouragement to himself; "Thou wilt light my candle:" thou wilt revive and comfort my sorrowful spirit; thou wilt guide my way, that I may avoid the snares laid for me. Thou wilt light my candle to work by, and give me an opportunity of serving thee. Let those that walk in darkness, and labour under discouragements, take courage; God himself will be a Light to them.

Commentary on Psalm 18:29-50

(Read Psalm 18:29-50)

When we praise for one mercy, we must observe the many more, with which we have been compassed all our days. Many things had contributed to David's advancement, and he owns the hand of God in them all, to teach us to do likewise. In verse 32, and the following verses, are the gifts of God to the spiritual warrior, whereby he is prepared for the contest, after the example of his victorious Leader. Learn that we must seek release being made through Christ, shall be rejected. In David the type, we behold out of trouble through Christ. The prayer put up, without reconciliation Jesus our Redeemer, conflicting with enemies, compassed with sorrows and with floods of ungodly men, enduring not only the pains of death, but the wrath of God for us; yet calling upon the Father with strong cries and tears; rescued from the grave; proceeding to reconcile, or to put under his feet all other enemies, till death, the last enemy, shall be destroyed. We should love the Lord, our Strength, and our Salvation; we should call on him in every trouble, and praise him for every deliverance; we should aim to walk with him in all righteousness and true holiness, keeping from sin. If we belong to him, he conquers and reigns for us, and we shall conquer and reign through him, and partake of the mercy of our anointed King, which is promised to all his seed for evermore. Amen.