1 Yahweh said to Joshua, "Don't be afraid, neither be dismayed. Take all the people of war with you, and arise, go up to Ai. Behold, I have given into your hand the king of Ai, with his people, his city, and his land.
2 You shall do to Ai and her king as you did to Jericho and her king, except its spoil and its livestock, you shall take for a plunder for yourselves. Set an ambush for the city behind it."
3 So Joshua arose, and all the people of war, to go up to Ai. Joshua chose thirty thousand men, the mighty men of valor, and sent them out by night.
4 He commanded them, saying, "Behold, you shall lie in ambush against the city, behind the city. Don't go very far from the city, but all of you be ready.
5 I, and all the people who are with me, will approach to the city. It shall happen, when they come out against us, as at the first, that we will flee before them.
6 They will come out after us, until we have drawn them away from the city; for they will say, 'They flee before us, like the first time.' So we will flee before them,
7 and you shall rise up from the ambush, and take possession of the city; for Yahweh your God will deliver it into your hand.
8 It shall be, when you have seized on the city, that you shall set the city on fire. You shall do this according to the word of Yahweh. Behold, I have commanded you."
9 Joshua sent them out; and they went to set up the ambush, and stayed between Bethel and Ai, on the west side of Ai; but Joshua stayed among the people that night.
10 Joshua rose up early in the morning, mustered the people, and went up, he and the elders of Israel, before the people to Ai.
11 All the people, even the men of war who were with him, went up, and drew near, and came before the city, and encamped on the north side of Ai. Now there was a valley between him and Ai.
12 He took about five thousand men, and set them in ambush between Bethel and Ai, on the west side of the city.
13 So they set the people, even all the army who was on the north of the city, and their ambush on the west of the city; and Joshua went that night into the midst of the valley.