WEB
It happened, when the king of Ai saw it, that 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.
YLT
And it cometh to pass, when the king of Ai seeth it, that hasten, and rise early, and go out do the men of the city to meet Israel for battle, he and all his people, at the appointed season, at the front of the plain, and he hath not known that an ambush is against him, on the rear of the city.