So they hired 32,000 chariots along with the king of Maacah and his people, who came and camped before Medeba. The children of Ammon also assembled from their cities and moved out to the battle.
Now when the children of Ammon saw that they had become a stench to David, the children of Ammon sent and hired the Arameans of Beth-Rehob and the Arameans of Zobah, 20,000 foot soldiers, and the king of Maacah with 1,000 men, plus 12,000 men from Tob.
David captured from him 1,000 chariots, 7,000 horsemen and 20,000 infantrymen. David hamstrung all the chariot horses but reserved 100 of them for chariots.
But the Egyptians pursued them with all the horses and chariots of Pharaoh, as well as his charioteers and his army, and overtook them as they were encamped by the sea, beside Pi-hahiroth opposite Baal-zephon.
from Aroer, that is on the edge of the valley of the Arnon, and the city that is in the middle of the valley, and all the flatland from Medeba to Dibon;
Meanwhile the Philistines assembled themselves to fight with Israel: 30,000 chariots, 6,000 horsemen and troops as numerous as the sand on the seashore. They marched up and camped in Michmas, east of Beth-aven.