When the Ammonites realized that they had become a stench1 in David's nostrils, they hired twenty thousand Aramean2 foot soldiers from Beth Rehob3 and Zobah,4 as well as the king of Maacah5 with a thousand men, and also twelve thousand men from Tob.6
References for 2 Samuel 10:6
On hearing this, David sent Joab7 out with the entire army of fighting men.
References for 2 Samuel 10:7
The Ammonites came out and drew up in battle formation at the entrance to their city gate, while the Arameans of Zobah and Rehob and the men of Tob and Maacah were by themselves in the open country.
Joab saw that there were battle lines in front of him and behind him; so he selected some of the best troops in Israel and deployed them against the Arameans.
He put the rest of the men under the command of Abishai8 his brother and deployed them against the Ammonites.
References for 2 Samuel 10:10
Joab said, "If the Arameans are too strong for me, then you are to come to my rescue; but if the Ammonites are too strong for you, then I will come to rescue you.
Be strong9 and let us fight bravely for our people and the cities of our God. The LORD will do what is good in his sight."10
References for 2 Samuel 10:12
Then Joab and the troops with him advanced to fight the Arameans, and they fled before him.
When the Ammonites11 saw that the Arameans were fleeing, they fled before Abishai and went inside the city. So Joab returned from fighting the Ammonites and came to Jerusalem.
References for 2 Samuel 10:14
After the Arameans saw that they had been routed by Israel, they regrouped.
Hadadezer had Arameans brought from beyond the River; they went to Helam, with Shobach the commander of Hadadezer's army leading them.
References for 2 Samuel 10:16
When David was told of this, he gathered all Israel, crossed the Jordan and went to Helam. The Arameans formed their battle lines to meet David and fought against him.
But they fled before Israel, and David killed seven hundred of their charioteers and forty thousand of their foot soldiers. He also struck down Shobach the commander of their army, and he died there.
References for 2 Samuel 10:18
When all the kings who were vassals of Hadadezer saw that they had been defeated by Israel, they made peace with the Israelites and became subject12 to them. So the Arameans13 were afraid to help the Ammonites anymore.
References for 2 Samuel 10:19