Joshua sent some men from Jericho to Ai, which was near Beth Aven, east of Bethel. He told them, “Go to Ai and spy out the area.” So the men went to spy on Ai.
Then he traveled from Shechem to the mountain east of Bethel and set up his tent there. Bethel was to the west, and Ai was to the east. There Abram built another altar to the Lord and worshiped him.
“People in the town of Heshbon, cry sadly because the town of Ai is destroyed! Those who live in Rabbah, cry out! Put on your rough cloth to show your sadness, and cry loudly. Run here and there for safety inside the walls, because Molech will be taken captive and his priests and officers with him.
“Israel, you act like a prostitute, but do not be guilty toward the Lord. Don’t go to Gilgal or go up to Beth Aven. Don’t make promises, saying, ‘As surely as the Lord lives …’
The northern border started at the Jordan River and went along the northern edge of Jericho, and then it went west into the mountains. That boundary continued until it was just east of Beth Aven.
Joshua son of Nun secretly sent out two spies from Acacia and said to them, “Go and look at the land, particularly at the city of Jericho.” So the men went to Jericho and stayed at the house of a prostitute named Rahab.
Later they came back to Joshua and said, “There are only a few people in Ai, so we will not need all our people to defeat them. Send only two or three thousand men to fight. There is no need to send all of our people.”
The Philistines gathered to fight Israel with three thousand chariots and six thousand men to ride in them. Their soldiers were as many as the grains of sand on the seashore. The Philistines went and camped at Micmash, which is east of Beth Aven.