Now Joshua sent men from Jericho to Ai, which is near Beth-aven, east of Bethel, and said to them, “Go up and spy out the land.” So the men went up and spied out Ai.
Then he proceeded from there to the mountain on the east of Bethel, and pitched his tent with Bethel on the west and Ai on the east; and there he built an altar to the Lord and called upon the name of the Lord.
“Wail, Heshbon, for Ai has been destroyed! Cry out, daughters of Rabbah, Put on sackcloth and mourn, And move about inside the walls; For Malcam will go into exile Together with his priests and his leaders.
¶Though you, Israel, play the prostitute, Judah must not become guilty; Also you are not to go to Gilgal, Nor go up to Beth-aven And take the oath: “As the Lord lives!”
Their border on the north side was from the Jordan, then the border went up to the side of Jericho on the north, and went up through the hill country westward, and it ended at the wilderness of Beth-aven.
Then Joshua the son of Nun sent two men as spies secretly from Shittim, saying, “Go, view the land, especially Jericho.” So they went and entered the house of a prostitute whose name was Rahab, and rested there.
Then they returned to Joshua and said to him, “Do not have all the people go up; have only about two or three thousand men go up and attack Ai; do not trouble all the people there, for they are few.”
Now the Philistines assembled to fight with Israel, thirty thousand chariots and six thousand horsemen, and people like the sand which is on the seashore in abundance; and they came up and camped in Michmash, east of Beth-aven.