1It came about later that Nahash, king of the people of Ammon, died, and that his son became king in his place.
2David said, “I will show kindness to Hanun son of Nahash, because his father showed kindness to me.” So David sent messengers to console him concerning his father. David's servants entered the land of the Ammonites and went to Hanun, in order to console him.
3But the Ammonite princes said to Hanun, “Do you think that David is honoring your father because he has sent men to comfort you? Do not his servants come to you to explore and examine the land in order to overthrow it?”
4So Hanun seized David's servants, shaved them, cut off their garments to the waist, up to their buttocks, and sent them away.
5When they explained this to David, he sent to meet with them, for the men were deeply ashamed. The king said, “Stay at Jericho until your beards have grown back, and then return.”
6When the Ammonites saw that they had become a stench to David, Hanun and the Ammonites sent a thousand talents of silver to hire Aramean chariots and horsemen from Naharaim, Maacah, and Zobah.
7They hired thirty-two thousand chariots and the king of Maacah and his army, who came and encamped before Medeba. Then the Ammonites gathered themselves together from their cities and came out to battle.
8When David heard of it, he sent Joab and his entire army to meet them.
9The people of Ammon came out and lined up for battle at the city gate, while the kings who had come were by themselves in the field.
10When Joab saw the battle lines facing him both in front and behind, he chose some of Israel's best fighters and arranged them against the Arameans.
11As for the rest of the army, he gave it into the command of Abishai his brother, and he put them into battle lines against the army of Ammon.
12Joab said, “If the Arameans are too strong for me, then you, Abishai, must rescue me. But if the army of Ammon is too strong for you, then I will come and rescue you.
13Be strong, and let us show ourselves to be strong for our people and for the cities of our God, for Yahweh will do what is good in his eyes.”
14So Joab and the soldiers of his army advanced to the battle against the Arameans, who were forced to flee before the army of Israel.
15When the army of Ammon saw that the Arameans had fled, they also fled from Joab's brother Abishai and went back into the city. Then Joab returned from the people of Ammon and went back to Jerusalem.
16When the Arameans saw that they were being defeated by Israel, they sent for reinforcements from beyond the Euphrates River, with Shophak the commander of Hadadezer's army.
17When David was told this, he gathered all Israel together, crossed the Jordan, and came upon them. He arranged the army for battle against the Arameans, and they fought him.
18The Arameans fled from Israel, and David killed seven thousand Aramean charioteers and forty thousand foot soldiers. He also killed Shophak, the commander of the army.
19When all the kings who were servants of Hadadezer saw that they were defeated by Israel, they made peace with David and served them. So the people of Aram were no longer willing to help the Ammonites.