Joshua sent men from Jericho to Ai, which is near Beth-aven, east of Bethel, and told them, “Go up and scout the land.” So the men went up and scouted Ai.
From there he moved on to the hill country east of Bethel and pitched his tent, with Bethel on the west and Ai on the east. He built an altar to Yahweh there, and he called on the name of Yahweh.
Wail, Heshbon, for Ai is devastated; cry out, daughters of Rabbah! Clothe yourselves with sackcloth, and lament; run back and forth within your walls, because Milcom will go into exile together with his priests and officials.
Israel, if you act promiscuously, don’t let Judah become guilty! Do not go to Gilgal or make a pilgrimage to Beth-aven, and do not swear an oath: As the Lord lives!
Their border on the north side began at the Jordan, ascended to the slope of Jericho on the north, through the hill country westward, and ended at the wilderness of Beth-aven.
Joshua son of Nun secretly sent two men as spies from the Acacia Grove, saying, “Go and scout the land, especially Jericho.” So they left, and they came to the house of a woman, a prostitute named Rahab, and stayed there.
After returning to Joshua they reported to him, “Don’t send all the people, but send about 2,000 or 3,000 men to attack Ai. Since the people of Ai are so few, don’t wear out all our people there.”
The Philistines also gathered to fight against Israel: 3,000 chariots, 6,000 horsemen, and troops as numerous as the sand on the seashore. They went up and camped at Michmash, east of Beth-aven.