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 strong, and let us fight bravely for our people and the cities of our God. The LORD will do what is good in his sight.”
Then Joab and the troops with him advanced to fight the Arameans, and they fled before him.
When the Ammonites realized 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.
After the Arameans saw that they had been routed by Israel, they regrouped.
Hadadezer had Arameans brought from beyond the Euphrates River; they went to Helam, with Shobak the commander of Hadadezer’s army leading them.
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 Shobak the commander of their army, and he died there.
When all the kings who were vassals of Hadadezer saw that they had been routed by Israel, they made peace with the Israelites and became subject to them. So the Arameans were afraid to help the Ammonites anymore.