Now it came about after this, that Nahash the king of the sons of Ammon died, and his son became king in his place.
Then David said, "I will show kindness to Hanun the son of Nahash, because his father showed kindness to me." So David sent messengers to console him concerning his father. And David's servants came into the land of the sons of Ammon to Hanun to console him.
But the princes of the sons of Ammon said to Hanun, "Do you think that David is honoring your father, in that he has sent comforters to you? Have not his servants come to you to search and to overthrow and to spy out the land?"
So Hanun took David's servants and shaved them and cut off their garments in the middle as far as their hips, and sent them away.
Then [certain persons] went and told David about the men. And he sent to meet them, for the men were greatly humiliated. And the king said, "Stay at Jericho until your beards grow, and [then] return."
When the sons of Ammon saw that they had made themselves odious to David, Hanun and the sons of Ammon sent 1,000 talents of silver to hire for themselves chariots and horsemen from Mesopotamia, from Aram-maacah and from Zobah.
So they hired for themselves 32,000 chariots, and the king of Maacah and his people, who came and camped before Medeba. And the sons of Ammon gathered together from their cities and came to battle.
When David heard [of it], he sent Joab and all the army, the mighty men.
The sons of Ammon came out and drew up in battle array at the entrance of the city, and the kings who had come were by themselves in the field.
Now when Joab saw that the battle was set against him in front and in the rear, he selected from all the choice men of Israel and they arrayed themselves against the Arameans.
But the remainder of the people he placed in the hand of Abshai his brother; and they arrayed themselves against the sons of Ammon.
He said, "If the Arameans are too strong for me, then you shall help me; but if the sons of Ammon are too strong for you, then I will help you.
"Be strong, and let us show ourselves courageous for the sake of our people and for the cities of our God; and may the LORD do what is good in His sight."
So Joab and the people who were with him drew near to the battle against the Arameans, and they fled before him.
When the sons of Ammon saw that the Arameans fled, they also fled before Abshai his brother and entered the city. Then Joab came to Jerusalem.
When the Arameans saw that they had been defeated by Israel, they sent messengers and brought out the Arameans who were beyond the River, with Shophach the commander of the army of Hadadezer leading them.
When it was told David, he gathered all Israel together and crossed the Jordan, and came upon them and drew up in formation against them. And when David drew up in battle array against the Arameans, they fought against him.
The Arameans fled before Israel, and David killed of the Arameans 7,000 charioteers and 40,000 foot soldiers, and put to death Shophach the commander of the army.
So when the servants of Hadadezer saw that they were defeated by Israel, they made peace with David and served him. Thus the Arameans were not willing to help the sons of Ammon anymore.
Then it happened in the spring, at the time when kings go out [to battle], that Joab led out the army and ravaged the land of the sons of Ammon, and came and besieged Rabbah. But David stayed at Jerusalem. And Joab struck Rabbah and overthrew it.
David took the crown of their king from his head, and he found it to weigh a talent of gold, and there was a precious stone in it; and it was placed on David's head. And he brought out the spoil of the city, a very great amount.
He brought out the people who [were] in it, and cut [them] with saws and with sharp instruments and with axes. And thus David did to all the cities of the sons of Ammon. Then David and all the people returned [to] Jerusalem.
Now it came about after this, that war broke out at Gezer with the Philistines; then Sibbecai the Hushathite killed Sippai, one of the descendants of the giants, and they were subdued.
And there was war with the Philistines again, and Elhanan the son of Jair killed Lahmi the brother of Goliath the Gittite, the shaft of whose spear [was] like a weaver's beam.
Again there was war at Gath, where there was a man of [great] stature who had twenty-four fingers and toes, six [fingers on each hand] and six [toes on each foot]; and he also was descended from the giants.
When he taunted Israel, Jonathan the son of Shimea, David's brother, killed him.
These were descended from the giants in Gath, and they fell by the hand of David and by the hand of his servants.
Then Satan stood up against Israel and moved David to number Israel.
So David said to Joab and to the princes of the people, "Go, number Israel from Beersheba even to Dan, and bring me [word] that I may know their number."
Joab said, "May the LORD add to His people a hundred times as many as they are! But, my lord the king, are they not all my lord's servants? Why does my lord seek this thing? Why should he be a cause of guilt to Israel?"
Nevertheless, the king's word prevailed against Joab. Therefore, Joab departed and went throughout all Israel, and came to Jerusalem.
Joab gave the number of the census of [all] the people to David. And all Israel were 1,100,000 men who drew the sword; and Judah [was] 470,000 men who drew the sword.
But he did not number Levi and Benjamin among them, for the king's command was abhorrent to Joab.
God was displeased with this thing, so He struck Israel.
David said to God, "I have sinned greatly, in that I have done this thing. But now, please take away the iniquity of Your servant, for I have done very foolishly."
The LORD spoke to Gad, David's seer, saying,
"Go and speak to David, saying, 'Thus says the LORD, "I offer you three things; choose for yourself one of them, which I will do to you."'"
So Gad came to David and said to him, "Thus says the LORD, 'Take for yourself
either three years of famine, or three months to be swept away before your foes, while the sword of your enemies overtakes [you], or else three days of the sword of the LORD, even pestilence in the land, and the angel of the LORD destroying throughout all the territory of Israel.' Now, therefore, consider what answer I shall return to Him who sent me."
David said to Gad, "I am in great distress; please let me fall into the hand of the LORD, for His mercies are very great. But do not let me fall into the hand of man."
So the LORD sent a pestilence on Israel; 70,000 men of Israel fell.
And God sent an angel to Jerusalem to destroy it; but as he was about to destroy [it], the LORD saw and was sorry over the calamity, and said to the destroying angel, "It is enough; now relax your hand." And the angel of the LORD was standing by the threshing floor of Ornan the Jebusite.
Then David lifted up his eyes and saw the angel of the LORD standing between earth and heaven, with his drawn sword in his hand stretched out over Jerusalem. Then David and the elders, covered with sackcloth, fell on their faces.
David said to God, "Is it not I who commanded to count the people? Indeed, I am the one who has sinned and done very wickedly, but these sheep, what have they done? O LORD my God, please let Your hand be against me and my father's household, but not against Your people that they should be plagued."
Then the angel of the LORD commanded Gad to say to David, that David should go up and build an altar to the LORD on the threshing floor of Ornan the Jebusite.
So David went up at the word of Gad, which he spoke in the name of the LORD.
Now Ornan turned back and saw the angel, and his four sons [who were] with him hid themselves. And Ornan was threshing wheat.
As David came to Ornan, Ornan looked and saw David, and went out from the threshing floor and prostrated himself before David with his face to the ground.
Then David said to Ornan, "Give me the site of [this] threshing floor, that I may build on it an altar to the LORD; for the full price you shall give it to me, that the plague may be restrained from the people."
Ornan said to David, "Take [it] for yourself; and let my lord the king do what is good in his sight. See, I will give the oxen for burnt offerings and the threshing sledges for wood and the wheat for the grain offering; I will give [it] all."
But King David said to Ornan, "No, but I will surely buy [it] for the full price; for I will not take what is yours for the LORD, or offer a burnt offering which costs me nothing."
So David gave Ornan 600 shekels of gold by weight for the site.
Then David built an altar to the LORD there and offered burnt offerings and peace offerings. And he called to the LORD and He answered him with fire from heaven on the altar of burnt offering.
The LORD commanded the angel, and he put his sword back in its sheath.
At that time, when David saw that the LORD had answered him on the threshing floor of Ornan the Jebusite, he offered sacrifice there.
For the tabernacle of the LORD, which Moses had made in the wilderness, and the altar of burnt offering [were] in the high place at Gibeon at that time.
But David could not go before it to inquire of God, for he was terrified by the sword of the angel of the LORD.