the king of Jericho one the king of Ai, which is near Bethel one
Then the Lord said to Joshua, “Do not be afraid. Do not lose hope. Go up and attack Ai. Take the whole army with you. I have handed the king of Ai over to you. I have given you his people, his city and his land.
Not even one man remained in Ai or Bethel. All of them went out to chase Israel. When they did, they left the city wide open.