1It came to pass after this that Nahash the king of the children of Ammon died and his son reigned in his place.
2David said, “I will show kindness to Hanun the son of Nahash, because his father showed kindness to me.” So David sent messengers to comfort him concerning his father. David’s servants came into the land of the children of Ammon to Hanun, to comfort him.
3But the officials of the children of Ammon said to Hanun, “Do you think that David honors your father in that he has sent comforters to you? Haven’t his servants come to you to search, to overthrow, and to spy out the land?”
4So Hanun took David’s servants and shaved them, and cut off their clothes in the middle, up to their hips, and sent them away.
5Then there went certain persons and told David how the men were served. He sent to meet them, for the men were greatly ashamed. The king said, “Stay at Jericho until your beards have grown, and then return.”
6When the children of Ammon saw that they had made themselves a stench to David, Hanun and the children of Ammon sent 1,000 talents of silver to hire them chariots and horsemen out of Mesopotamia and out of Arammaacah and out of Zobah.
7So they hired for themselves 32,000 chariots, and the king of Maacah and his people, who came and encamped before Medeba. The children of Ammon gathered themselves together from their cities and came to battle.
8When David heard of it, he sent Joab and all the army of the mighty men.
9The children of Ammon came out and set up in battle formation at the gate of the city, and the kings who had come were by themselves in the open country.
10Now when Joab saw that the battle was set against him in front and in the rear, he chose some of all the best men of Israel and set them in battle formation against the Syrians.
11The rest of the people he put into the hand of Abishai his brother, and they set up in battle formation against the children of Ammon.
12And he said, “If the Syrians are too strong for me, then you will save me; but if the children of Ammon are too strong for you, then I will save you.
13Be strong, and let us be strong for our people and for the cities of our God, and Yahweh will do what is good in his eyes.”
14So Joab and the people who were with him drew near to the battle against the Syrians, and they fled before him.
15When the children of Ammon saw that the Syrians had fled, they likewise fled before Abishai his brother and entered into the city. Then Joab came to Jerusalem.
16When the Syrians saw that they were defeated by Israel, they sent messengers and brought out the Syrians who were beyond the river, with Shophach the commander of the army of Hadadezer leading them.
17It was told David, and he gathered all Israel together and passed over the Jordan, and came on them and set up his battle formations against them. And when David had set up battle formations against the Syrians, they fought against him.
18The Syrians fled before Israel, and David killed of the Syrians 7,000 charioteers, and 40,000 footsoldiers, and killed Shophach the commander of the army.
19When the servants of Hadadezer saw that they were defeated by Israel, they made peace with David and served him, and the Syrians were not willing to save the children of Ammon any more.