Joshua 8:14

14 When the king of Ai saw the main camp, he and all his troops got up early in the morning. They rushed out toward the plains to meet Israel for battle, just where [Joshua] expected. However, the king didn't know there were troops behind the city waiting to attack him.