Joshua.
Chapter 8.
Yahweh said to Joshua, “Do not fear; do not be discouraged. Take with you all the people of war. Go up to Ai. See, I have given into your hand the king of Ai, his people, his city, and his land. 
You will do to Ai and her king as you have done to Jericho and her king, except that you will take the plunder and the cattle for yourselves. Set an ambush behind the city.” 
So Joshua got up and took all the men of war up to Ai. Then Joshua chose thirty thousand men—strong, courageous men—and he sent them out at night. 
He commanded them, “Look, you will lie in ambush against the city, behind it. Do not go very far from the city, but all of you be ready. 
I and all the men with me will approach the city, and when they come out to attack us, we will run away from them just as before. 
They will come out after us until we have drawn them away from the city. They will say, 'They are running away from us as they did the last time.' So we will run away from them. 
Then you come up out of your place of hiding, and you will capture the city. Yahweh your God will give it into your hand. 
When you capture the city, you will set it on fire. You will do this when you obey the command given in the word of Yahweh. See, I have commanded you.” 
Joshua sent them out, and they went to the place of ambush, and they hid between Bethel and Ai to the west of Ai. But Joshua slept that night among the people. 
Joshua got up early in the morning and got his soldiers ready, Joshua and the elders of Israel, and they attacked the people of Ai. 
All the fighting men who were with him went up and approached the city. They came near the city and camped on the north side of Ai. Now there was a valley between them and Ai. 
He took about five thousand men and set them in ambush on the west side of the city between Bethel and Ai. 
They positioned all the soldiers, the main army on the north side of the city, and the rear guard on the west side of the city. Joshua spent that night in the valley. 
It came about when the king of Ai saw it, he and his army got up early and rushed out to attack Israel at a certain place that was overlooking the Jordan River valley. He did not know that an ambush was waiting to attack from behind the city. 
Joshua and all Israel let themselves be defeated before them, and they fled toward the wilderness. 
All the people who were in the city were called together to go after them, and they went after Joshua and they were drawn away from the city. 
There was not a man left in Ai and Bethel who had not gone out to pursue Israel. They abandoned the city and left it open as they pursued Israel. 
Yahweh said to Joshua, “Point that spear in your hand toward Ai, for I will give Ai into your hand.” Joshua held out the spear that was in his hand toward the city. 
The soldiers hiding in ambush quickly rushed out of their place as he reached out with his hand. They ran and entered the city and captured it. They quickly set the city on fire. 
The men of Ai turned and looked back. They saw the smoke from the city rising into the sky, and they could not escape this way or that. For the Israelite soldiers who had fled into the wilderness now turned back to face those who were pursuing them. 
When Joshua and all Israel saw the ambush had captured the city with the smoke rising, they turned around and killed the men of Ai. 
The other soldiers of Israel, those who had gone in the city, came out to attack them. So the men of Ai were caught between the armies of Israel, some on this side and some on that side. Israel attacked the men of Ai; none of them survived or escaped. 
They kept the king of Ai, whom they captured alive, and they brought him to Joshua. 
It came about when Israel had finished killing all the inhabitants of Ai in the field near the wilderness where they pursued them, and when all of them, to the very last one, had fallen by the edge of the sword, all Israel returned to Ai. They attacked it with the edge of the sword. 
All those who fell that day, both men and women, were twelve thousand, all the people of Ai. 
Joshua did not draw back his hand with which he had reached out while holding his spear, until he had completely destroyed all the people of Ai. 
Israel took only the livestock and the plunder from the city for themselves, just as Yahweh had commanded Joshua. 
Joshua burned Ai and turned it into a heap of ruins forever. It is an abandoned place to this day. 
He hanged the king of Ai on a tree until evening. When the sun was going down, Joshua gave the command and they took the king's body down from the tree and threw it in front of the city gates. There they set up a great heap of stones on top of it. That heap remains there to this day. 
Then Joshua built an altar to Yahweh, the God of Israel, on Mount Ebal, 
just as Moses the servant of Yahweh had commanded the people of Israel, as it was written in the Book of the Law of Moses: “An altar from uncut stones, on which no one has wielded an iron tool.” He offered on the altar burnt offerings to Yahweh, and they sacrificed peace offerings. 
There, in the presence of the people of Israel, he wrote on the stones a copy of the law of Moses. 
All Israel, their elders, officers, and their judges stood on both sides of the ark before the priests and Levites who carried the ark of the covenant of Yahweh—the foreigner as well as the native born—half of them stood in front of Mount Gerizim and the other half stood in front of Mount Ebal. They blessed the people of Israel, just as Moses the servant of Yahweh had commanded them at first. 
Afterward, Joshua read all the words of the law, the blessings and the curses, just as they had been written in the book of the law. 
There was not one word from all that Moses commanded that Joshua did not read in front of the assembly of Israel, including the women, the little children, and the foreigners who lived among them. 
