After that, he moved on south to the hill country east of the city of Bethel and set up his camp between Bethel on the west and Ai on the east. There also he built an altar and worshiped the Lord.
People of Heshbon, cry out! Ai is destroyed! Women of Rabbah, go into mourning! Put on sackcloth and mourn. Run about in confusion. Your god Molech will be taken into exile, together with his priests and princes.
“Even though you people of Israel are unfaithful to me, may Judah not be guilty of the same thing. Don't worship at Gilgal or Bethaven, or make promises there in the name of the living Lord.
On the north their border began at the Jordan and then went up the slope north of Jericho and westward through the hill country as far as the desert of Bethaven.
Then Joshua sent two spies from the camp at Acacia with orders to go and secretly explore the land of Canaan, especially the city of Jericho. When they came to the city, they went to spend the night in the house of a prostitute named Rahab.
they reported back to Joshua: “There is no need for everyone to attack Ai. Send only about two or three thousand men. Don't send the whole army up there to fight; it is not a large city.”
The Philistines assembled to fight the Israelites; they had thirty thousand war chariots, six thousand cavalry troops, and as many soldiers as there are grains of sand on the seashore. They went to Michmash, east of Bethaven, and camped there.