When Joab saw that the battle was set against him both in front and in the rear, he chose some of the best men of Israel and arrayed them against the Syrians.
References for 1 Chronicles 19:10
The rest of his men he put in the charge of 1Abishai his brother, and they were arrayed against the Ammonites.
References for 1 Chronicles 19:11
And he said, "If the Syrians are too strong for me, then you shall help me, but if the Ammonites are too strong for you, then I will help you.
Be strong, and let us use our strength for our people and for the cities of our God, and may the LORD do what seems good to him."
So Joab and the people who were with him drew near before the Syrians for battle, and they fled before him.
And when the Ammonites saw that the Syrians fled, they likewise fled before 2Abishai, Joab's brother, and entered the city. Then Joab came to Jerusalem.
References for 1 Chronicles 19:15
[See ver. 11 above]
But when the Syrians saw that they had been defeated by Israel, they sent messengers and brought out the Syrians who were beyond the Euphrates, with 3Shophach the commander of the army of 4Hadadezer at their head.
References for 1 Chronicles 19:16
And when it was told to David, he gathered all Israel together and crossed the Jordan and came to them and drew up his forces against them. And when David set the battle in array against the Syrians, they fought with him.
And the Syrians fled before Israel, and David killed of the Syrians the men of 5 7,000 chariots and 40,000 6foot soldiers, and put to death also 7Shophach the commander of their army.
References for 1 Chronicles 19:18
And when the servants of 8Hadadezer saw that they had been defeated by Israel, they made peace with David and became subject to him. So the Syrians were not willing to save the Ammonites anymore.
References for 1 Chronicles 19:19
[See ver. 16 above]