When David heard of it, he sent Joab and all the army of the mighty men.
David said, “Whoever shall smite the Jebusites first shall be chief and commander.” And Joab the 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 encamped before Medeba. And the Ammonites were mustered from their cities and came to battle.
And 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.