And it came to pass after this, Naas the king of the children of Ammon died, and Anan his son reigned in his stead.
And David said, I will act kindly toward Anan the son of Naas, as his father acted kindly towards me. And David sent messengers to condole with him on the death of his father. So the servants of David came into the land of the children of Ammon to Anan, to comfort him.
And the chiefs of the children of Ammon said to Anan, Is it to honour thy father before thee, that David has sent comforters to thee? Have not his servants come to thee that they might search the city, and to spy out the land?
And Anan took the servants of David, and shaved them, and cut off the half of their garments as far as their tunic, and sent them away.
And there came men to report to David concerning the men: and he sent to meet them, for they were greatly disgraced: and the king said, Dwell in Jericho until your beards have grown, and return.
And the children of Ammon saw that the people of David were ashamed, and Anan and the children of Ammon sent a thousand talents of silver to hire for themselves chariots and horsemen out of Syria of Mesopotamia, and out of Syria Maacha, and from Sobal.
And they hired for themselves two and thirty thousand chariots, and the king of Maacha and his people; and they came and encamped before Medaba: and the children of Ammon assembled out of their cities, and came to fight.
And David heard, and sent Joab and all the host of mighty men.
And the children of Ammon came forth, and set themselves in array for battle by the gate of the city: and the kings that were come forth encamped by themselves in the plain.
And Joab saw that they were fronting to fight against him before and behind, and he chose out of all the young men of Israel, and they set themselves in array against the Syrian.
And the rest of the people he gave into the hand of his brother Abesai, and they set themselves in array against the children of Ammon.
And he said, If the Syrian should prevail against me, then shalt thou deliver me: and if the children of Ammon should prevail against thee, then will I deliver thee.
Be of good courage, and let us be strong, for our people, and for the cities of our God: and the Lord shall do what good in his eyes.
So Joab and the people that were with him set themselves in battle array against the Syrians, and they fled from them.
And the children of Ammon saw that the Syrians fled, and they also fled from before Abesai, and from before Joab his brother, and they came to the city: and Joab came to Jerusalem.
And the Syrian saw that Israel had defeated him, and he sent messengers, and they brought out the Syrians from beyond the river; and Sophath the commander-in-chief of the forces of Adraazar before them.
And it was told David; and he gathered all Israel, and crossed over Jordan, and came upon them, and set the battle in array against them. So David set in array to fight against the Syrians, and they fought against him.
And the Syrians fled from before Israel; and David slew of the Syrians seven thousand chariots, and forty thousand infantry, and he slew Sophath the commander-in-chief of the forces.
And the servants of Adraazar saw that they were defeated before Israel, and they made peace with David and served him: and the Syrians would not any more help the children of Ammon.