11 All the people, even the men of war who were with him, went up, and came near, and came before the city, and encamped on the north side of Ai. Now there was a valley between him and Ai.
12 He took about five thousand men, and set them in ambush between Bethel and Ai, on the west side of the city.
13 So they set the people, even all the army who was on the north of the city, and their ambush on the west of the city; and Joshua went that night into the middle of the valley.
14 When the king of Ai saw it, they hurried and rose up early, and the men of the city went out against Israel to battle, he and all his people, at the time appointed, before the Arabah; but he didn’t know that there was an ambush against him behind the city.
15 Joshua and all Israel made as if they were beaten before them, and fled by the way of the wilderness.
16 All the people who were in the city were called together to pursue after them. They pursued Joshua, and were drawn away from the city.
17 There was not a man left in Ai or Beth El who didn’t go out after Israel. They left the city open, and pursued Israel.