David had told his troops, “The first soldier to kill a Jebusite will become my army commander.” And since Joab son of Zeruiah attacked first, he became commander.
Thirty-two thousand troops, as well as the king of Maacah and his army, came and camped near Medeba. The Ammonite troops also left their towns and came to prepare for battle.