King James Version
And all the people, even the people of war that were with him, went up, and drew nigh, and came before the city, and pitched on the north side of Ai: now there was a valley between them and Ai.English Standard Version
And all the fighting men who were with him went up and drew near before the city and encamped on the north side of Ai, with a ravine between them and Ai.New International Version
The entire force that was with him marched up and approached the city and arrived in front of it. They set up camp north of Ai, with the valley between them and the city.