Joshua sent men from Jericho to Ai (which is located near Beth Aven, east of Bethel) and instructed them, “Go up and spy on the land.” So the men went up and spied on Ai.
Then he moved from there to the hill country east of Bethel and pitched his tent, with Bethel on the west and Ai on the east. There he built an altar to the Lord and worshiped the Lord.
Wail, you people in Heshbon, because Ai in Ammon is destroyed. Cry out in anguish, you people in the villages surrounding Rabbah. Put on sackcloth and cry out in mourning. Run about covered with gashes. For your god Milcom will go into exile along with his priests and officials.
Although you, O Israel, commit adultery, do not let Judah become guilty! Do not journey to Gilgal! Do not go up to Beth Aven! Do not swear, “As surely as the Lord lives!”
Their northern border started at the Jordan, went up to the slope of Jericho on the north, ascended westward to the hill country, and extended to the desert of Beth Aven.
Joshua son of Nun sent two spies out from Shittim secretly and instructed them: “Find out what you can about the land, especially Jericho.” They stopped at the house of a prostitute named Rahab and spent the night there.
They returned and reported to Joshua, “Don’t send the whole army. About two or three thousand men are adequate to defeat Ai. Don’t tire out the whole army, for Ai is small.”
For the battle with Israel the Philistines had amassed 3,000 chariots, 6,000 horsemen, and an army as numerous as the sand on the seashore. They went up and camped at Micmash, east of Beth Aven.