The Ammonites came out and drew up for battle at the entrance of the city, while the kings who had come were by themselves in the open field.
In context
7They hired thirty-two thousand chariots, along with the king of Maacah and his people, who came and camped before Medeba. And the Ammonites gathered from their cities and came out for battle. 8When David heard of it, he sent Joab and the whole army of mighty men. 9The Ammonites came out and drew up for battle at the entrance of the city, while the kings who had come were by themselves in the open field. 10When Joab saw that the battle was set against him both in front and behind, he chose some of the best of Israel and arrayed them against the Arameans. 11The rest of the troops he placed under the command of his brother Abishai, and they arrayed themselves against the Ammonites.