All those who were with him went up and approached the city, arriving opposite Ai, and camped to the north of it, with a valley between them and the city.