1 Chronicles 19:6-15

19:6 When the Ammonites realized that David was disgusted with them, Hanun and the Ammonites sent 1,000 talents of silver to hire chariots and charioteers from Aram Naharaim, Aram Maacah, and Zobah. 19:7 They hired 32,000 chariots, along with the king of Maacah and his army, who came and camped in front of Medeba. The Ammonites also assembled from their cities and marched out to do battle.

19:8 When David heard the news, he sent Joab and the entire army to meet them. 19:9 The Ammonites marched out and were deployed for battle at the entrance to the city, while the kings who had come were by themselves in the field. 19:10 When Joab saw that the battle would be fought on two fronts, he chose some of Israel’s best men and deployed them against the Arameans. 19:11 He put his brother Abishai in charge of the rest of the army and they were deployed against the Ammonites. 19:12 Joab said, “If the Arameans start to overpower me, you come to my rescue. If the Ammonites start to overpower you, I will come to your rescue. 19:13 Be strong! Let’s fight bravely for the sake of our people and the cities of our God! The Lord will do what he decides is best!” 19:14 So Joab and his men marched toward the Arameans to do battle, and they fled before him. 19:15 When the Ammonites saw the Arameans flee, they fled before Joab’s brother Abishai and withdrew into the city. Joab went back to Jerusalem.