Joshua 8:14

14 When the king of Ai saw [the Israelites], the men of the city hurried and went out early in the morning, so that he and all his people could engage Israel in battle at a suitable place facing the plaina [of the Jordan]. But he did not know there was an ambush [waiting] for him behind the city.