David spoke the words of this song to the LORD on the day the LORD rescued him from the hand of all his enemies and from the hand of Saul.
He said: The LORD is my rock, my fortress, and my deliverer,
my God, my mountain where I seek refuge. My shield, the horn of my salvation, my stronghold, my refuge, and my Savior, You save me from violence.
I called to the LORD, who is worthy of praise, and I was saved from my enemies.
For the waves of death engulfed me; the torrents of destruction terrified me.
The ropes of Sheol entangled me; the snares of death confronted me.
I called to the LORD in my distress; I called to my God. From His temple He heard my voice, and my cry for help [reached] His ears.
Then the earth shook and quaked; the foundations of the heavens trembled; they shook because He burned with anger.
Smoke rose from His nostrils, and consuming fire [came] from His mouth; coals were set ablaze by it.
He parted the heavens and came down, a dark cloud beneath His feet.
He rode on a cherub and flew, soaring on the wings of the wind.
He made darkness a canopy around Him, a gathering of water and thick clouds.
From the radiance of His presence, flaming coals were ignited.
The LORD thundered from heaven; the Most High projected His voice.
He shot arrows and scattered them; [He hurled] lightning bolts and routed them.
The depths of the sea became visible, the foundations of the world were exposed at the rebuke of the Lord, at the blast of the breath of His nostrils.
He reached down from on high and took hold of me; He pulled me out of deep waters.
He rescued me from my powerful enemy and from those who hated me, for they were too strong for me.
They confronted me in the day of my distress, but the LORD was my support.
He brought me out to a wide-open place; He rescued me because He delighted in me.
The LORD rewarded me according to my righteousness; He repaid me according to the cleanness of my hands.
For I have kept the ways of the LORD and have not turned from my God to wickedness.
Indeed, I have kept all His ordinances in mind and have not disregarded His statutes.
I was blameless before Him and kept myself from sinning.
So the LORD repaid me according to my righteousness, according to my cleanness in His sight.
With the faithful You prove Yourself faithful; with the blameless man You prove Yourself blameless;
with the pure You prove Yourself pure, but with the crooked You prove Yourself shrewd.
You rescue an afflicted people, but Your eyes are set against the proud-- You humble them.
LORD, You are my lamp; the LORD illuminates my darkness.
With You I can attack a barrier, and with my God I can leap over a wall.
God-- His way is perfect; the word of the LORD is pure. He is a shield to all who take refuge in Him.
For who is God besides the LORD? And who is a rock? Only our God.
God is my strong refuge; He makes my way perfect.
He makes my feet like [the feet of] a deer and sets me securely on the heights.
He trains my hands for war; my arms can bend a bow of bronze.
You have given me the shield of Your salvation; Your help exalts me.
You widen [a place] beneath me for my steps, and my ankles do not give way.
I pursue my enemies and destroy them; I do not turn back until they are wiped out.
I wipe them out and crush them, and they do not rise; they fall beneath my feet.
You have clothed me with strength for battle; You subdue my adversaries beneath me.
You have made my enemies retreat before me; I annihilate those who hated me.
They look, but there is no one to save [them]-- [they look] to the LORD, but He does not answer them.
I pulverize them like dust of the earth; I crush them and trample them like mud in the streets.
You have freed me from the feuds among my people; You have appointed me the head of nations; a people I had not known serve me.
Foreigners submit to me grudgingly; as soon as they hear, they obey me.
Foreigners lose heart and come trembling from their fortifications.
The LORD lives-- may my rock be praised! God, the rock of my salvation, is exalted.
God-- He gives me vengeance and casts down peoples under me.
He frees me from my enemies. You exalt me above my adversaries; You rescue me from violent men.
Therefore I will praise You, LORD, among the nations; I will sing about Your name.
He is a tower of salvation for His king; He shows loyalty to His anointed, to David and his descendants forever.
These are the last words of David: The proclamation of David son of Jesse, the proclamation of the man raised on high, the one anointed by the God of Jacob, the favorite singer of Israel:
The Spirit of the LORD spoke through me, His word was on my tongue.
The God of Israel spoke; the Rock of Israel said to me, "The one who rules the people with justice, who rules in the fear of God,
is like the morning light when the sun rises on a cloudless morning, the glisten of rain on sprouting grass."
Is it not true my house is with God? For He has established an everlasting covenant with me, ordered and secured in every [detail]. Will He not bring about my whole salvation and [my] every desire?
But all the wicked are like thorns raked aside; they can never be picked up by hand.
The man who touches them must be armed with iron and the shaft of a spear. They will be completely burned up on the spot.
These are the names of David's warriors: Josheb-basshebeth the Tahchemonite was chief of the officers. He wielded his spear against 800 [men] he killed at one time.
After him, Eleazar son of Dodo son of Ahohi was among the three warriors with David when they defied the Philistines. The men of Israel retreated in the place they had gathered for battle,
but Eleazar stood [his ground] and attacked the Philistines until his hand was tired and stuck to his sword. The LORD brought about a great victory that day. Then the troops came back to him, but only to plunder the dead.
After him was Shammah son of Agee the Hararite. The Philistines had assembled [in formation] where there was a field full of lentils. The troops fled from the Philistines,
but Shammah took his stand in the middle of the field, defended it, and struck down the Philistines. So the LORD brought about a great victory.
Three of the 30 leading [warriors] went down at harvest time and came to David at the cave of Adullam, while a company of Philistines was camping in the Valley of Rephaim.
At that time David was in the stronghold, and a Philistine garrison was at Bethlehem.
David was extremely thirsty and said, "If only someone would bring me water to drink from the well at the city gate of Bethlehem!"
So three of the warriors broke through the Philistine camp and drew water from the well at the gate of Bethlehem. They brought it back to David, but he refused to drink it. Instead, he poured it out to the LORD.
David said, "LORD, I would never do such a thing! Is this not the blood of men who risked their lives?" So he refused to drink it. Such were the exploits of the three warriors.
Abishai, Joab's brother and son of Zeruiah, was leader of the Three. He raised his spear against 300 [men] and killed them, gaining a reputation among the Three.
Was he not the most honored of the Three? He became their commander even though he did not become one of the Three.
Benaiah son of Jehoiada was the son of a brave man from Kabzeel, a man of many exploits. Benaiah killed two sons of Ariel of Moab, and he went down into a pit on a snowy day and killed a lion.
He also killed an Egyptian, a huge man. Even though the Egyptian had a spear in his hand, Benaiah went down to him with a club, snatched the spear out of the Egyptian's hand, and then killed him with his own spear.
These were the exploits of Benaiah son of Jehoiada, who had a reputation among the three warriors.
He was the most honored of the Thirty, but he did not become one of the Three. David put him in charge of his bodyguard.
Among the Thirty were: Joab's brother Asahel, Elhanan son of Dodo of Bethlehem,
Shammah the Harodite, Elika the Harodite,
Helez the Paltite, Ira son of Ikkesh the Tekoite,
Abiezer the Anathothite, Mebunnai the Hushathite,
Zalmon the Ahohite, Maharai the Netophathite,
Heleb son of Baanah the Netophahite, Ittai son of Ribai from Gibeah of the Benjaminites,
Benaiah the Pirathonite, Hiddai from the Wadis of Gaash,
Abi-albon the Arbathite, Azmaveth the Barhumite,
Eliahba the Shaalbonite, the sons of Jashen, Jonathan son of
Shammah the Hararite, Ahiam son of Sharar the Hararite,
Eliphelet son of Ahasbai son of the Maacathite, Eliam son of Ahithophel the Gilonite,
Hezro the Carmelite, Paarai the Arbite,
Igal son of Nathan from Zobah, Bani the Gadite,
Zelek the Ammonite, Naharai the Beerothite, the armor-bearer for Joab son of Zeruiah,
Ira the Ithrite, Gareb the Ithrite,
and Uriah the Hittite. There were 37 in all.
The LORD's anger burned against Israel again, and it stirred up David against them to say: "Go, count [the people of] Israel and Judah."
So the king said to Joab, the commander of his army, "Go through all the tribes of Israel from Dan to Beer-sheba and register the troops so I can know their number."
Joab replied to the king, "May the LORD your God multiply the troops 100 times more than they are-- while my lord the king looks on! But why does my lord the king want to do this?"
Yet the king's order prevailed over Joab and the commanders of the army. So Joab and the commanders of the army left the king's presence to register the troops of Israel.
They crossed the Jordan and camped in Aroer, south of the town in the middle of the valley, and then [proceeded] toward Gad and Jazer.
They went to Gilead and to the land of the Hittites and continued on to Dan-jaan and around to Sidon.
They went to the fortress of Tyre and all the cities of the Hivites and Canaanites. Afterwards, they went to the Negev of Judah at Beer-sheba.
When they had gone through the whole land, they returned to Jerusalem at the end of nine months and 20 days.
Joab gave the king the total of the registration of the troops. There were 800,000 fighting men from Israel and 500,000 men from Judah.
David's conscience troubled him after he had taken a census of the troops. He said to the LORD, "I have sinned greatly in what I've done. Now, Lord, because I've been very foolish, please take away your servant's guilt."
When David got up in the morning, a revelation from the LORD had come to the prophet Gad, David's seer:
"Go and say to David, 'This is what the LORD says: I am offering you three [choices]. Choose one of them, and I will do it to you.'"
So Gad went to David, told him [the choices], and asked him, "Do you want three years of famine to come on your land, to flee from your foes three months while they pursue you, or to have a plague in your land three days? Now, think it over and decide what answer I should take back to the One who sent me."
David answered Gad, "I have great anxiety. Please, let us fall into the LORD's hands because His mercies are great, but don't let me fall into human hands."
So the LORD sent a plague on Israel from that morning until the appointed time, and from Dan to Beer-sheba 70,000 men died.
Then the angel extended his hand toward Jerusalem to destroy it, but the LORD relented concerning the destruction and said to the angel who was destroying the people, "Enough, withdraw your hand now!" The angel of the LORD was then at the threshing floor of Araunah the Jebusite.
When David saw the angel striking the people, he said to the LORD, "Look, I am the one who has sinned; I am the one who has done wrong. But these sheep, what have they done? Please, let Your hand be against me and my father's family."
Gad came to David that day and said to him, "Go up and set up an altar to the LORD on the threshing floor of Araunah the Jebusite."
David went up in obedience to Gad's command, just as the LORD had commanded.
Araunah looked down and saw the king and his servants coming toward him, so he went out and bowed to the king with his face to the ground.
Araunah said, "Why has my lord the king come to his servant?" David replied, "To buy the threshing floor from you in order to build an altar to the LORD, so the plague on the people may be halted."
Araunah said to David, "My lord the king may take whatever he wants and offer it. Here are the oxen for a burnt offering and the threshing sledges and ox yokes for the wood.
[My] king, Araunah gives everything here to the king." Then he said to the king, "May the LORD your God accept you."
The king answered Araunah, "No, I insist on buying it from you for a price, for I will not offer to the LORD my God burnt offerings that cost [me] nothing." David bought the threshing floor and the oxen for 50 ounces of silver.
He built an altar to the LORD there and offered burnt offerings and fellowship offerings. Then the LORD answered prayer on behalf of the land, and the plague on Israel ended.