Then David said to Abishai, “Now Sheba son of Bicri will cause greater disaster for us than Absalom did! Take your lord’s servants and pursue him. Otherwise he will secure fortified cities for himself and get away from us.”
The Lord said, “Announce this in Judah and proclaim it in Jerusalem: ‘Sound the trumpet throughout the land!’ Shout out loudly, ‘Gather together! Let us flee into the fortified cities!’
The people say, “Why are we just sitting here? Let us gather together inside the fortified cities. Let us at least die there fighting, since the Lord our God has condemned us to die. He has condemned us to drink the poison waters of judgment because we have sinned against him.
The Lord routed them before Israel. Israel thoroughly defeated them at Gibeon. They chased them up the road to the pass of Beth Horon and struck them down all the way to Azekah and Makkedah.
But don’t you delay! Chase your enemies and catch them! Don’t allow them to retreat to their cities, for the Lord your God is handing them over to you.”
The Lord handed them over to Israel and they struck them down and chased them all the way to Greater Sidon, Misrephoth Maim, and the Mizpah Valley to the east. They struck them down until no survivors remained.
When Israel had finished killing all the men of Ai who had chased them toward the desert (they all fell by the sword), all Israel returned to Ai and put the sword to it.