2 Samuel Chapters 22, 23 and Psalm 57
Opening Prayer
Heavenly Father,
Thank You for the life of David, Your servant. As we open Your Word today to study 2 Samuel 22 and 23 and Psalm 57, we ask You to open our hearts and minds. Help us see Your power and mercy in David’s songs of deliverance, his last words, and his cry for refuge in the cave.
Teach us to trust You in danger as David did. Fill us with gratitude for Your faithfulness, and give us courage to praise You even in difficult seasons. Speak to us through these passages and show us how to live with the same wholehearted devotion to You.
In Jesus’ name, Amen.
Looking Back
In 2 Samuel 21, a three-year famine strikes Israel. David seeks the Lord and learns it is judgment for Saul’s earlier massacre of the Gibeonites, violating Israel’s covenant with them. To atone, David hands over seven of Saul’s descendants to the Gibeonites, who execute them. Later, war breaks out again with the Philistines. David and his warriors fight several battles against Philistine giants (descendants of Rapha). In one battle David grows faint, and his men urge him not to fight anymore so the “lamp of Israel” would not be extinguished. David’s mighty men then kill four Philistine giants, bringing an end to those particular threats.
Introduction to 2 Samuel 22–23:
Immediately following these events, David sings a magnificent song of praise and thanksgiving for all the deliverance the Lord has given him throughout his life (2 Samuel 22). This psalm is nearly identical to Psalm 18. In 2 Samuel 23, David delivers his last words—a Spirit-inspired reflection on righteous rule—followed by a record of his elite mighty warriors and their heroic deeds.
Scripture NKJV
II Samuel 22
Praise for God’s Deliverance
1 Then David spoke to the Lord the words of this song, on the day when the Lord had delivered him from the hand of all his enemies, and from the hand of Saul. 2 And he said:
“The Lord is my rock and my fortress and my deliverer;
3 The God of my strength, in whom I will trust;
My shield and the horn of my salvation, My stronghold and my refuge;
My Savior, You save me from violence.
4 I will call upon the Lord, who is worthy to be praised;
So shall I be saved from my enemies.
5 “When the waves of death surrounded me,
The floods of ungodliness made me afraid.
6 The sorrows of Sheol surrounded me; The snares of death confronted me.
7 In my distress I called upon the Lord, And cried out to my God;
He heard my voice from His temple, And my cry entered His ears.
8 “Then the earth shook and trembled;
The foundations of heaven quaked and were shaken,
Because He was angry.
9 Smoke went up from His nostrils, And devouring fire from His mouth;
Coals were kindled by it.
10 He bowed the heavens also, and came down
With darkness under His feet.
1 1He rode upon a cherub, and flew;
And He was seen upon the wings of the wind.
12 He made darkness canopies around Him,
Dark waters and thick clouds of the skies.
13 From the brightness before Him Coals of fire were kindled.
14 “The Lord thundered from heaven, And the Most High uttered His voice.
15 He sent out arrows and scattered them; Lightning bolts, and He vanquished them.
16 Then the channels of the sea were seen,
The foundations of the world were uncovered, At the rebuke of the Lord,
At the blast of the breath of His nostrils.
17 “He sent from above, He took me, He drew me out of many waters.
18 He delivered me from my strong enemy, From those who hated me;
For they were too strong for me.
19 They confronted me in the day of my calamity,
But the Lord was my support.
20 He also brought me out into a broad place;
He delivered me because He delighted in me.
21 “The Lord rewarded me according to my righteousness;
According to the cleanness of my hands He has recompensed me.
22 For I have kept the ways of the Lord,
And have not wickedly departed from my God.
23 For all His judgments were before me;
And as for His statutes, I did not depart from them.
24 I was also blameless before Him, And I kept myself from my iniquity.
25Therefore the Lord has recompensed me according to my righteousness,
According to my cleanness in His eyes.
26 “With the merciful You will show Yourself merciful;
With a blameless man You will show Yourself blameless;
27 With the pure You will show Yourself pure;
And with the devious You will show Yourself shrewd.
28 You will save the humble people;
But Your eyes are on the haughty, that You may bring them down.
29 “For You are my lamp, O Lord; The Lord shall enlighten my darkness.
30 For by You I can run against a troop; By my God I can leap over a wall.
31 As for God, His way is perfect; The word of the Lord is proven;
He is a shield to all who trust in Him.
32 “For who is God, except the Lord? And who is a rock, except our God?
33 God is my strength and power, And He makes my way perfect.
34 He makes my feet like the feet of deer, And sets me on my high places.
35 He teaches my hands to make war,
So that my arms can bend a bow of bronze.
36 “You have also given me the shield of Your salvation;
Your gentleness has made me great.
37 You enlarged my path under me; So my feet did not slip.
38 “I have pursued my enemies and destroyed them;
Neither did I turn back again till they were destroyed.
39 And I have destroyed them and wounded them,
So that they could not rise; They have fallen under my feet.
40 For You have armed me with strength for the battle;
You have subdued under me those who rose against me.
41 You have also given me the necks of my enemies,
So that I destroyed those who hated me.
42 They looked, but there was none to save;
Even to the Lord, but He did not answer them.
43 Then I beat them as fine as the dust of the earth;
I trod them like dirt in the streets, And I spread them out.
44 “You have also delivered me from the strivings of my people;
You have kept me as the head of the nations.
A people I have not known shall serve me.
45 The foreigners submit to me; As soon as they hear, they obey me.
46 The foreigners fade away, And come frightened from their hideouts.
47 “The Lord lives! Blessed be my Rock!
Let God be exalted, The Rock of my salvation!
48 It is God who avenges me, And subdues the peoples under me;
49 He delivers me from my enemies.
You also lift me up above those who rise against me;
You have delivered me from the violent man.
50 Therefore I will give thanks to You, O Lord, among the Gentiles,
And sing praises to Your name.
51 “He is the tower of salvation to His king, And shows mercy to His anointed,
To David and his descendants forevermore.”
II Samuel 23
David’s Last Words
1 Now these are the last words of David.
Thus says David the son of Jesse;
Thus says the man raised up on high,
The anointed of the God of Jacob,
And the sweet psalmist of Israel:
2 “The Spirit of the Lord spoke by me,
And His word was on my tongue.
3 The God of Israel said,
The Rock of Israel spoke to me:
‘He who rules over men must be just,
Ruling in the fear of God.
4 And he shall be like the light of the morning when the sun rises,
A morning without clouds,
Like the tender grass springing out of the earth,
By clear shining after rain.’
5 “Although my house is not so with God,
Yet He has made with me an everlasting covenant,
Ordered in all things and secure.
For this is all my salvation and all my desire;
Will He not make it increase?
6 But the sons of rebellion shall all be as thorns thrust away,
Because they cannot be taken with hands.
7 But the man who touches them
Must be armed with iron and the shaft of a spear,
And they shall be utterly burned with fire in their place.”
David’s Mighty Men
8 These are the names of the mighty men whom David had: Josheb-Basshebeth the Tachmonite, chief among the captains. He was called Adino the Eznite, because he had killed eight hundred men at one time. 9 And after him was Eleazar the son of Dodo, the Ahohite, one of the three mighty men with David when they defied the Philistines who were gathered there for battle, and the men of Israel had retreated. 10 He arose and attacked the Philistines until his hand was weary, and his hand stuck to the sword. The Lord brought about a great victory that day; and the people returned after him only to plunder. 11 And after him was Shammah the son of Agee the Hararite. The Philistines had gathered together into a troop where there was a piece of ground full of lentils. So the people fled from the Philistines. 12 But he stationed himself in the middle of the field, defended it, and killed the Philistines. So the Lord brought about a great victory.
13 Then three of the thirty chief men went down at harvest time and came to David at the cave of Adullam. And the troop of Philistines encamped in the Valley of Rephaim. 14 David was then in the stronghold, and the garrison of the Philistines was then in Bethlehem. 15 And David said with longing, “Oh, that someone would give me a drink of the water from the well of Bethlehem, which is by the gate!” 16 So the three mighty men broke through the camp of the Philistines, drew water from the well of Bethlehem that was by the gate, and took it and brought it to David. Nevertheless he would not drink it, but poured it out to the Lord. 17 And he said, “Far be it from me, O Lord, that I should do this! Is this not the blood of the men who went in jeopardy of their lives?” Therefore he would not drink it.
These things were done by the three mighty men.
18 Now Abishai the brother of Joab, the son of Zeruiah, was chief of another three. He lifted his spear against three hundred men, killed them, and won a name among these three. 19 Was he not the most honored of three? Therefore he became their captain. However, he did not attain to the first three.
20 Benaiah was the son of Jehoiada, the son of a valiant man from Kabzeel, who had done many deeds. He had killed two lion-like heroes of Moab. He also had gone down and killed a lion in the midst of a pit on a snowy day. 21 And he killed an Egyptian, a spectacular man. The Egyptian had a spear in his hand; so he went down to him with a staff, wrested the spear out of the Egyptian’s hand, and killed him with his own spear. 22 These things Benaiah the son of Jehoiada did, and won a name among three mighty men. 23 He was more honored than the thirty, but he did not attain to the first three. And David appointed him over his guard.
24 Asahel the brother of Joab was one of the thirty; Elhanan the son of Dodo of Bethlehem, 25 Shammah the Harodite, Elika the Harodite, 26 Helez the Paltite, Ira the son of Ikkesh the Tekoite, 27 Abiezer the Anathothite, Mebunnai the Hushathite, 28 Zalmon the Ahohite, Maharai the Netophathite, 29 Heleb the son of Baanah (the Netophathite), Ittai the son of Ribai from Gibeah of the children of Benjamin, 30 Benaiah a Pirathonite, Hiddai from the brooks of Gaash, 31 Abi-Albon the Arbathite, Azmaveth the Barhumite, 32 Eliahba the Shaalbonite (of the sons of Jashen), Jonathan, 33 Shammah the Hararite, Ahiam the son of Sharar the Hararite, 34 Eliphelet the son of Ahasbai, the son of the Maachathite, Eliam the son of Ahithophel the Gilonite, 35 Hezrai the Carmelite, Paarai the Arbite, 36 Igal the son of Nathan of Zobah, Bani the Gadite, 37 Zelek the Ammonite, Naharai the Beerothite (armorbearer of Joab the son of Zeruiah), 38 Ira the Ithrite, Gareb the Ithrite, 39 and Uriah the Hittite: thirty-seven in all.
Psalms 57
Prayer for Safety from Enemies
To the Chief Musician. Set to “Do Not Destroy.” A Michtam of Davidwhen he fled from Saul into the cave.
1 Be merciful to me, O God, be merciful to me!
For my soul trusts in You;
And in the shadow of Your wings I will make my refuge,
Until these calamities have passed by.
2 I will cry out to God Most High,
To God who performs all things for me.
3 He shall send from heaven and save me;
He reproaches the one who would swallow me up.
Selah
God shall send forth His mercy and His truth.
4 My soul is among lions;
I lie among the sons of men
Who are set on fire,
Whose teeth are spears and arrows,
And their tongue a sharp sword.
5 Be exalted, O God, above the heavens;
Let Your glory be above all the earth.
6 They have prepared a net for my steps;
My soul is bowed down;
They have dug a pit before me;
Into the midst of it they themselves have fallen.
Selah
7 My heart is steadfast, O God, my heart is steadfast;
I will sing and give praise.
8 Awake, my glory!
Awake, lute and harp!
I will awaken the dawn.
9 I will praise You, O Lord, among the peoples;
I will sing to You among the nations.
10 For Your mercy reaches unto the heavens,
And Your truth unto the clouds.
11 Be exalted, O God, above the heavens;
Let Your glory be above all the earth.
What it means
2 Samuel 22 is a magnificent song of thanksgiving and praise that David composed after the Lord had delivered him from all his enemies, including Saul. It is nearly identical to Psalm 18, with minor variations that reflect its use first as a personal testimony and later in corporate worship.
David begins by piling up vivid metaphors for God: “The LORD is my rock and my fortress and my deliverer, my God, my rock, in whom I take refuge, my shield, and the horn of my salvation, my stronghold and my refuge, my savior” (2 Samuel 22:2-3, ESV). These images draw from David’s fugitive years in caves, deserts, and strongholds—God Himself became the ultimate safe place when human ones failed.
The heart of the song describes a dramatic theophany (appearance of God) in response to David’s cry: waves of death, torrents of destruction, and the cords of Sheol nearly overwhelmed him, but God heard from His temple, descended in anger with smoke from His nostrils, riding on a cherub, thundering from heaven, and drawing David out of “many waters.” This poetic language echoes the Exodus and Sinai, portraying God’s personal intervention on behalf of His anointed servant.
David then explains why God delivered him: “The LORD dealt with me according to my righteousness; according to the cleanness of my hands he rewarded me” (v. 21). This is not self-righteous boasting but a testimony of covenant loyalty—David kept God’s ways, did not depart wickedly, and was blameless before the Lord in the context of his calling (though he was not sinless, as seen elsewhere). God delights in those who walk in integrity, and He exalts the humble while bringing down the proud (vv. 28, 41-43). The song ends with triumphant praise: God lives, is exalted as the rock of salvation, and gives great victories to His king and shows steadfast love to His anointed (v. 51).
Overall meaning: 2 Samuel 22 celebrates God as the sovereign Deliverer who rescues, empowers, and exalts His people not because they are perfect, but because of His faithful covenant love. It models how to look back on a lifetime of trials and see God’s hand throughout.
2 Samuel 23 records David’s “last words”—an inspired oracle rather than a deathbed speech. It has two main parts.
Verses 1-7 form a prophetic poem. David identifies himself as “the son of Jesse… the anointed of the God of Jacob, the sweet psalmist of Israel.” He declares, “The Spirit of the LORD speaks by me; his word is on my tongue” (v. 2). This is strong prophetic language. God (the Rock of Israel) speaks through him about righteous rule: a just king who rules in the fear of God is like the light of morning, like tender grass after rain—refreshing and life-giving.
David then reflects on God’s covenant with his house: “For does not my house stand so with God? For he has made with me an everlasting covenant, ordered in all things and secure” (v. 5). This refers back to the Davidic Covenant (2 Samuel 7), pointing ultimately beyond David to the Messiah. The wicked, by contrast, are like useless thorns that must be burned. These words affirm God’s faithfulness despite David’s failures and look forward to the perfect King to come.
Verses 8-39 list David’s mighty men and their heroic exploits—warriors like Josheb-basshebeth (who killed 800 at one time), Eleazar, Shammah, and the Three who risked their lives to bring David water from Bethlehem’s well. David poured the water out as an offering to the Lord, honoring their sacrifice. The list celebrates loyalty, courage, and God’s blessing on David’s leadership through faithful companions.
Overall meaning: Chapter 23 balances personal reflection on God’s covenant with public recognition of the community that helped fulfill God’s purposes. Righteous leadership flows from fearing God and resting in His unbreakable promises.
Psalm 57 is a miktam of David “when he fled from Saul, in the cave” (likely the cave of Adullam or En Gedi). It is a cry for mercy in the midst of mortal danger that rises into confident praise.
David pleads twice, “Be merciful to me, O God, be merciful to me, for in you my soul takes refuge. In the shadow of your wings I will take refuge, till the storms of destruction pass by” (v. 1). The image of God’s wings evokes a mother bird sheltering her young—intimate protection. He cries to “God Most High” who fulfills His purpose for David (v. 2). Even while surrounded by “lions” (enemies whose teeth are spears and tongues sharp swords), David affirms that God will send mercy and truth from heaven (vv. 3-4).
A turning point comes in verse 5: “Be exalted, O God, above the heavens! Let your glory be over all the earth!” This refrain repeats at the end (v. 11), showing the psalm’s movement from desperation to worship. Enemies set a net and dug a pit, but they fell into their own trap. David’s heart becomes steadfast; he awakens the dawn with praise and vows to sing God’s steadfast love and faithfulness among the nations.
Overall meaning: Psalm 57 teaches that in the darkest cave of life, when enemies press in, the believer can take refuge under God’s wings, trust His purpose, and choose to exalt His glory—turning trial into testimony. It beautifully complements 2 Samuel 22’s broader retrospective praise by showing the raw, immediate cry of a heart under pressure.
These three passages together portray David as a flawed but wholehearted worshiper who experienced God as Rock, Refuge, and Redeemer. They invite us to the same: honest cries in danger, deep trust in God’s covenant, and extravagant praise for His deliverance—ultimately pointing us to Jesus, the greater Son of David, who perfectly fulfills the everlasting covenant.
Closing Statement
As we conclude our study of 2 Samuel 22, 23, and Psalm 57, we see a beautiful tapestry of David’s life with God: desperate cries for refuge in the cave (Psalm 57), triumphant praise for lifelong deliverance (2 Samuel 22), and Spirit-inspired confidence in God’s everlasting covenant (2 Samuel 23).
From the darkness of the cave to the heights of the throne, David experienced the Lord as his Rock, Fortress, and the Shadow of Wings — a faithful Deliverer who hears, rescues, and exalts. Even in his final words, David rested not in his own strength or his mighty men, but in the covenant God made with him, ordered and secure.
These passages together declare one powerful truth: God is worthy of our trust in every season — in danger, in battle, and in reflection. He turns our caves of trouble into altars of worship and our battles into testimonies of His glory.
May we, like David, run to the Lord as our refuge, praise Him wholeheartedly for every deliverance, and anchor our lives in His unbreakable covenant — looking ultimately to Jesus, the perfect Son of David, who is our eternal Rock and Redeemer.
To God be the glory forever. Amen.
Thank you for joining me in today’s study. May your day be blessed and your walk be filled with joy from the Lord. Let Him guide you and ease your burdens as you turn to him for all your needs. I love you.
👣👣👣🙏🙏🙏🙏🙏👣👣👣👣👣
Special thanks are given to Jesus Christ, my Lord and Savior, for the gift of writing and the privilege of sharing this Bible Study. His guidance and blessings have made this work possible, and it is with a grateful heart that can share my study with you. I hope you find it informational and helpful in your spiritual journey. I am asking that you open your hearts and minds to accept the word of Christ into your hearts and accept His word to transform your life in positive ways. This is the first part of my online Christian Bookstore Fellowship and I do accept donations that will further my mission to have a Bookstore in our community, a place where we can sit down face to face and enjoy this Bible Study over open and honest conversation. I will continue this online Study as well to complete the entire year. Thank you for following The Mustard Seed Christian Bookstore Fellowship & Café online Bible Study.
This Bible study is written with inspiration and wisdom from the Holy Spirit, Scripture from the Holy Bible (NIV), NKJV Life Application Study Bible, analytical support and help in organizing and presentation from Grok AI and writing assistance with drafting and editing from Microsoft Co-Pilot.

