When David heard of it, he sent Joab and all the army of the warriors.
David had said, “Whoever attacks the Jebusites first shall be chief and commander.” And Joab son of Zeruiah went up first, so he became chief.
They hired thirty-two thousand chariots and the king of Maacah with his army, who came and camped before Medeba. And the Ammonites were mustered from their cities and came to battle.
The Ammonites came out and drew up in battle array at the entrance of the city, and the kings who had come were by themselves in the open country.