David sang this song to the LORD when the LORD rescued him from all his enemies, especially from Saul.
He said, The LORD is my rock and my fortress and my Savior,
my God, my rock in whom I take refuge, my shield, the strength of my salvation, my stronghold, my refuge, and my Savior who saved me from violence.
The LORD should be praised. I called on him, and I was saved from my enemies.
The waves of death had surrounded me. The torrents of destruction had overwhelmed me.
The ropes of the grave had surrounded me. The clutches of death had confronted me.
I called on the LORD in my distress. I called to my God for help. He heard my voice from his temple, and my cry for help reached his ears.
Then the earth shook and quaked. Even the foundations of the heavens trembled. They shook violently because he was angry.
Smoke went up from his nostrils, and a raging fire came out of his mouth. Glowing coals flared up from it.
He spread apart the heavens and came down with a dark cloud under his feet.
He rode on one of the angels as he flew, and he soared on the wings of the wind.
He surrounded himself with darkness. He made the dark rain clouds his covering.
Out of the brightness in front of him, he made lightning.
The LORD thundered from heaven. The Most High made his voice heard.
He shot arrows and scattered them. He flashed streaks of lightning and threw them into confusion.
Then the ocean floor could be seen. The foundations of the earth were laid bare at the LORD's stern warning, at the blast of the breath from his nostrils.
He reached down from high above and took hold of me. He pulled me out of the raging water.
He rescued me from my strong enemy and from those who hated me, because they were too strong for me.
On the day when I faced disaster, they confronted me, but the LORD became my defense.
He brought me out to a wide-open place. He rescued me because he was pleased with me.
The LORD rewarded me because of my righteousness, because my hands are clean. He paid me back
because I have kept the ways of the LORD and I have not wickedly turned away from my God,
because all his judgments are in front of me and I have not turned away from his laws.
I was innocent as far as he was concerned. I have kept myself from guilt.
The LORD paid me back because of my righteousness, because he can see that I am clean.
[In dealing] with faithful people you are faithful, with innocent warriors you are innocent,
with pure people you are pure. [In dealing] with devious people you are clever.
You save humble people, but your eyes bring down arrogant people.
O LORD, you are my lamp. The LORD turns my darkness into light.
With you I can attack a line of soldiers. With my God I can break through barricades.
God's way is perfect! The promise of the LORD has proven to be true. He is a shield to all those who take refuge in him.
Who is God but the LORD? Who is a rock other than our God?
God arms me with strength. His perfect way sets me free.
He makes my feet like those of a deer and gives me sure footing on high places.
He trains my hands for battle so that my arms can bend an [archer's] bow of bronze.
You have given me the shield of your salvation. Your help makes me great.
You make a wide path for me to walk on so that my feet do not slip.
I chased my enemies and destroyed them. I did not return until I had ended their lives.
I ended their lives by shattering them. They were unable to get up. They fell under my feet.
You armed me with strength for battle. You made my opponents bow at my feet.
You made my enemies turn their backs to me, and I destroyed those who hated me.
They looked, but there was no one to save them. They looked to the LORD, but he did not answer them.
I beat them into a powder as fine as the dust on the ground. I crushed them and stomped on them like the dirt on the streets.
You rescued me from my conflicts with my people. You kept me as the leader of nations. A people I did not know will serve me.
Foreigners will cringe in front of me. As soon as they hear of me, they will obey me.
Foreigners will lose heart, although they are armed in their fortifications.
The LORD lives! Thanks be to my rock! May God, the rock of my salvation, be glorified.
God gives me vengeance! He brings people under my authority.
He frees me from my enemies. You lift me up above my opponents. You rescue me from violent people.
That is why I will give thanks to you, O LORD, among the nations and make music to praise your name.
He gives great victories to his king. He shows mercy to his anointed, to David, and to his descendant forever.
These are the last words of David: "Here is the declaration by David, son of Jesse-- the declaration by the man whom God raised up, whom the God of Jacob anointed, the singer of Israel's psalms:
"The Spirit of the LORD spoke through me. His words were on my tongue.
The God of Israel spoke to them. The rock of Israel told me, 'The one who rules humans with justice rules with the fear of God.
He is like the morning light as the sun rises, like a morning without clouds, like the brightness after a rainstorm. The rain makes the grass grow from the earth.'
"Truly, God considers my house to be that way, because he has made a lasting promise to me, with every detail arranged and assured. [He promised] everything that helps me, everything that pleases me. Truly, he makes these things happen.
"Worthless people are like thorns. All of them are thrown away, because they cannot be picked by hand.
A person who touches them uses iron [tools] or the shaft of a spear. Fire will burn them up completely wherever they are."
These are the names of David's fighting men: Josheb Basshebeth from Tahkemon's family was leader of the three. He used a spear to kill 800 men on one occasion.
Next in rank to him was Eleazar, another one of the three fighting men. He was the son of Dodo and grandson of Aho. Eleazar was with David at Pas Dammim when the Philistines gathered there for battle. When the soldiers from Israel retreated,
he attacked and killed Philistines until his hand got tired and stuck to his sword. So the LORD won an impressive victory that day. The army returned to Eleazar, but they only returned to strip the dead.
Next in rank to him was Shammah, the son of Agee from Harar. The Philistines had gathered at Lehi, where there was a field of ripe lentils. When the troops fled from the Philistines,
he stood in the middle of the field and defended it by killing Philistines. So the LORD won an impressive victory.
At harvest time three of the thirty leading men came to David at the cave of Adullam when a troop from the Philistine army was camping in the valley of Rephaim.
While David was in the fortified camp, Philistine troops were at Bethlehem.
When David became thirsty, he said, "I wish I could have a drink of water from the well at the city gate of Bethlehem."
So the three fighting men burst into the Philistine camp and drew water from the well. They brought it to David, but he refused to drink it. He poured it out [as an offering] to the LORD and said,
"It's unthinkable that I would do this, LORD. This is the blood of men who risked their lives!" So he refused to drink it. These are the things which the three fighting men did.
Joab's brother Abishai, Zeruiah's son, was the leader of the thirty. He used his spear to kill 300 men. He was as famous as the three
and was honored more than they were. So he became their captain, but he didn't become a member of the three.
Benaiah, son of Jehoiada, was from Kabzeel and was a brave man who did many things. He killed two distinguished soldiers from Moab. He also went into a pit and killed a lion on the day it snowed.
And he killed a handsome Egyptian. The Egyptian had a spear in his hand. Benaiah went to him with a club, grabbed the spear from him, and killed him with it.
These are the things that Benaiah, son of Jehoiada, did. He was as famous as the three fighting men.
He was honored more than the thirty, but he was not a member of the three. David put him in charge of his bodyguards.
One of the thirty was Joab's brother Asahel. [The thirty leading men were] Elhanan (son of Dodo) from Bethlehem,
Shammah from Harod, Elika from Harod,
Helez the Paltite, Ira (son of Ikkesh) from Tekoa,
Abiezer from Anathoth, Mebunnai (son of Hushai),
Zalmon (descendant of Ahohi), Maharai from Netophah,
Heleb (son of Baanah) from Netophah, Ittai (son of Ribai) from Gibeah in Benjamin,
Benaiah from Pirathon, Hiddai from the Gaash ravines,
Abi Albon from Beth Arabah, Azmaveth from Bahurim,
Elihba from Shaalbon, Bene Jashen,
Jonathan ([son of] Shammah the Hararite), Ahiam (son of Sharar the Hararite),
Eliphelet (son of Ahasbai and grandson of a man from Maacah), Eliam (son of Ahithophel) from Gilo,
Hezrai from Carmel, Paarai from Arabah,
Igal (son of Nathan) from Zobah, Bani from the tribe of Gad,
Zelek from Ammon, Naharai from Beeroth, armorbearer for Zeruiah's son Joab,
Ira (descendant of Ithra), Gareb (descendant of Ithra),
Uriah the Hittite-- 37 in all.
The LORD became angry with Israel again, so he provoked David to turn against Israel. He said, "Go, count Israel and Judah."
King David said to Joab, the commander of the army who was with him, "Go throughout the tribes of Israel from Dan to Beersheba and count the people. That way I will know how many there are."
Joab responded to the king, "May the LORD your God multiply the people a hundred times over, and may Your Majesty [live] to see it. But why does Your Majesty wish to do this?"
However, the king overruled Joab and the commanders of the army. So they left the king [in order] to count the people of Israel.
They crossed the Jordan River and camped at Aroer, south of the city in the middle of the valley. Then they went to Gad and to Jazer.
They went to Gilead and to Tahtim Hodshi and then to Dan Jaan and around toward Sidon.
They went to the fortified city of Tyre and all the cities of the Hivites and the Canaanites. Then they went to Beersheba in the Negev of Judah.
When they had covered the whole country, they came to Jerusalem after 9 months and 20 days.
Joab reported the census figures to the king: In Israel there were 800,000 able-bodied men who could serve in the army, and in Judah there were 500,000.
After David counted the people, his conscience troubled him. David said to the LORD, "I have committed a terrible sin by what I have done. LORD, please forgive me because I have acted very foolishly."
When David got up in the morning, the LORD spoke his word to the prophet Gad, David's seer.
"Go and tell David, 'This is what the LORD says: I'm offering you three choices. Choose the one you want me to do to you.'"
When Gad came to David, he told David this and asked, "Should seven years of famine come to you and your land, or three months during which you flee from your enemies as they pursue you, or should there be a three-day plague in your land? Think it over, and decide what answer I should give the one who sent me."
"I'm in a desperate situation," David told Gad. "Please let us fall into the LORD's hands because he is very merciful. But don't let me fall into human hands."
So the LORD sent a plague among the Israelites from that morning until the time he had chosen. Of the people from Dan to Beersheba, 70,000 died.
But when the Messenger stretched out his arm to destroy Jerusalem, the LORD changed his mind about the disaster. "Enough!" he said to the Messenger who was destroying the people. "Put down your weapon." The Messenger of the LORD was at the threshing floor of Araunah the Jebusite.
When David saw the Messenger who had been killing the people, he said to the LORD, "I've sinned. I've done wrong. What have these sheep done? Please let your punishment be against me and against my father's family."
That day Gad came to David and said to him, "Go, set up an altar for the LORD at Araunah the Jebusite's threshing floor."
David went as Gad had told him and as the LORD had commanded him.
When Araunah looked down and saw the king and his men coming toward him, he went out and bowed down with his face touching the ground in front of the king.
"Why has Your Majesty come to me?" Araunah asked. David answered, "To buy the threshing floor from you and to build an altar for the LORD. Then the plague on the people will stop."
Araunah said to David, "Take it, Your Majesty, and offer whatever you think is right. There are oxen for the burnt offering, and there are threshers and oxen yokes for firewood."
All this Araunah gave to the king and said, "May the LORD your God accept you."
"No!" the king said to Araunah. "I must buy it from you at a [fair] price. I won't offer the LORD my God burnt sacrifices that cost me nothing." So David bought the threshing floor and the oxen for 1¼ pounds of silver.
David built an altar for the LORD there and sacrificed burnt offerings and fellowship offerings. So the LORD heard the prayers for the country, and the plague on Israel stopped.