Joshua 8:14-16

14And as soon as the king of Ai saw this, he and all his people, the men of the city, hurried and went out early to the appointed place
Hebrew  appointed time
toward bthe Arabah to meet Israel in battle. cBut he did not know that there was an ambush against him behind the city.
15And Joshua and all Israel dpretended to be beaten before them and fled in the direction of the wilderness. 16So all the people who were in the city were called together to pursue them, and as they pursued Joshua they ewere drawn away from the city.
Copyright information for ESV