After David heard about this, he sent Joab and all the elite troops. 9
The Ammonites formed a battle line at the entrance of the city, while the Arameans from Zobah and Rehob and the kings who had come remained by themselves in the open country.
10When Joab saw he was under attack in front and behind, he took the select troops of Israel and organized them for combat against the Arameans. 11He put his brother Abishai in charge of the rest of the troops. They organized for combat against the Ammonites. 12Joab said, "If the Arameans are too strong for my [troops], be ready to help me. And if the Ammonites are too strong for your [troops], I'll help you. 13Be strong! Let's prove ourselves strong for our people and for the cities of our God, and the LORD will do what he considers right." 14Then Joab and his troops advanced to fight the Arameans, and the Arameans fled. 15When the Ammonites saw that the Arameans had fled, they, too, fled from Joab's brother Abishai and went into the city. So Joab returned to Jerusalem.
16Realizing that Israel had defeated them, the kings sent [messengers] to get [other] Arameans from beyond the Euphrates River. Shophach, the commander of Hadadezer's army, led them. 17When David was told [about this], he assembled Israel's army, crossed the Jordan, and confronted them. David formed a battle line against the Arameans, and they fought him. 18The Arameans fled from Israel, and David killed 7,000 chariot drivers and 40,000 foot soldiers. David also killed Shophach. 19When all the kings who were subject to Hadadezer saw that Israel had defeated them, they made peace with David and became his subjects. And the Arameans were no longer willing to help the Ammonites.