And it came to pass when the king of Ai saw it, he hastened and went out to meet them direct to the battle, he and all the people that were with him: and he knew not that there was an ambuscade formed against him behind the city.