The king got out of bed and said to his officers, "I know what those Syrians are doing. They know we're starving, so they're hiding in the fields, hoping we will go out to look for food. When we do, they can capture us and take over our city."
But please don't do what they say. More than forty men are going to attack Paul. They have made a vow not to eat or drink anything until they have killed him. Even now they are waiting to hear what you decide."
So he called out every man in Ai to go after Joshua's troops. They all rushed out to chase the Israelite army, and they left the town gates wide open. Not one man was left in Ai or in Bethel. Joshua let the men of Ai chase him and his army farther and farther away from Ai.
Joshua quickly got the army ready to attack Ai. He chose thirty thousand of his best soldiers and gave them these orders: Tonight, while it is dark, march to Ai and take up a position behind the town. Get as close to the town as you can without being seen, but be ready to attack.
Then they sent some men to hide on the hilltops and watch for Abimelech and his troops, while they sent others to rob everyone that went by on the road. But Abimelech found out what they were doing.
"When the Israelites were on their way out of Egypt, the nation of Amalek attacked them. I am the LORD All-Powerful, and now I am going to make Amalek pay!