1 Chronicles 19:6 - 19:19
6 Then the sons of Ammon saw that they had made themselves odious to David. So Hanun and the sons of Ammon sent 1,000 talents of silver to hire for themselves chariots and horsemen from Mesopotamia, from Aram-maacah, and from Zobah. 7 So they hired for themselves 32,000 chariots, and the king of Maacah and his people, who came and camped before Medeba. And the sons of Ammon gathered together from their cities and came to battle. 8 Then David heard of it, and he sent Joab and all the army, the mighty men. 9 And the sons of Ammon came out and arranged themselves for battle at the entrance of the city. But the kings who had come were by themselves in the field. David Defeats Ammon and Aram
10 Then Joab saw that the battle was set against him in front and in the rear. So he chose from all the choice men of Israel and they arranged themselves to meet the Arameans. 11 But the remainder of the people he put in the hand of Abshai his brother; and they arranged themselves to meet the sons of Ammon. 12 And he said, “If the Arameans are too strong for me, then you shall save me; but if the sons of Ammon are too strong for you, then I will save you. 13 Be strong, and let us show strength for the sake of our people and for the cities of our God; and may Yahweh do what is good in His sight.” 14 So Joab and the people who were with him drew near before the Arameans for the battle, and they fled before him. 15 Now the sons of Ammon saw that the Arameans fled. So they themselves also fled before Abshai his brother and came into the city. Then Joab came to Jerusalem. 16 Then the Arameans saw that they had been defeated by Israel. So they sent messengers and brought out the Arameans who were beyond the River, and Shophach the commander of the army of Hadadezer led them. 17 And it was told to David, so he gathered all Israel together and crossed the Jordan, and came upon them and arranged for battle against them. So David arranged them in battle to meet the Arameans. And they fought against him. 18 But the Arameans fled before Israel, and David killed of the Arameans 7,000 charioteers and 40,000 foot soldiers, and put to death Shophach the commander of the army. 19 Then the servants of Hadadezer saw that they were defeated by Israel. So they made peace with David and served him. And the Arameans were not willing to save the sons of Ammon anymore.