6 King Hanun and the Ammonites realized that they had made David their enemy, so they paid nearly forty tons of silver to hire chariots and charioteers from Upper Mesopotamia and from the Syrian states of Maacah and Zobah.
7 The thirty-two thousand chariots they hired and the army of the king of Maacah came and camped near Medeba. The Ammonites too came out from all their cities and got ready to fight.
8 When David heard what was happening, he sent out Joab and the whole army.
9 The Ammonites marched out and took up their position at the entrance to Rabbah, their capital city, and the kings who had come to help took up their position in the open countryside.
10 Joab saw that the enemy troops would attack him in front and from the rear, so he chose the best of Israel's soldiers and put them in position facing the Syrians.
11 He placed the rest of his troops under the command of his brother Abishai, who put them in position facing the Ammonites.
12 Joab said to him, “If you see that the Syrians are defeating me, come and help me, and if the Ammonites are defeating you, I will go and help you.