The Israelites, however, were unfaithful regarding the things set apart for destruction. Achan son of Carmi, son of Zabdi, son of Zerah, of the tribe of Judah, took some of what was set apart, and the LORD's anger burned against the Israelites.
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.
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."
So about 3,000 men went up there, but they fled from the men of Ai.
The men of Ai struck down about 36 of them and chased them from outside the gate to the quarries, striking them down on the descent. As a result, the people's hearts melted and became like water.
Then Joshua tore his clothes and fell before the ark of the LORD with his face to the ground until evening, as did the elders of Israel; they all put dust on their heads.
"Oh, Lord God," Joshua said, "why did You ever bring these people across the Jordan to hand us over to the Amorites for our destruction? If only we had been content to remain on the other side of the Jordan!
What can I say, Lord, now that Israel has turned its back [and run] from its enemies?
When the Canaanites and all who live in the land hear about this, they will surround us and wipe out our name from the earth. Then what will You do about Your great name?"
The LORD then said to Joshua, "Stand up! Why are you on the ground?
Israel has sinned. They have violated My covenant that I appointed for them. They have taken some of what was set apart. They have stolen, deceived, and put [the things] with their own belongings.
This is why the Israelites cannot stand against their enemies. They will turn their backs [and run] from their enemies, because they have been set apart for destruction. I will no longer be with you unless you remove from you what is set apart.
"Go and consecrate the people. Tell them to consecrate themselves tomorrow, for this is what the LORD, the God of Israel, says, 'There are among you, Israel, things set apart. You will not be able to stand against your enemies until you remove what is set apart.
In the morning you must present yourselves tribe by tribe. The tribe the LORD selects is to come forward clan by clan. The clan the LORD selects is to come forward family by family. The family the LORD selects is to come forward man by man.
The one who is caught with the things set apart must be burned, along with everything he has, because he has violated the LORD's covenant and committed an outrage in Israel.'"
Joshua got up early the next morning. He had Israel come forward tribe by tribe, and the tribe of Judah was selected.
He had the clans of Judah come forward, and the Zerahite clan was selected. He had the Zerahite clan come forward by heads of families, and Zabdi was selected.
He then had Zabdi's family come forward man by man, and Achan son of Carmi, son of Zabdi, son of Zerah, of the tribe of Judah, was selected.
So Joshua said to Achan, "My son, give glory to the LORD, the God of Israel, and make a confession to Him. I urge you, tell me what you have done. Don't hide anything from me."
Achan replied to Joshua, "It is true. I have sinned against the LORD, the God of Israel. This is what I did:
When I saw among the spoils a beautiful cloak from Babylon, 200 silver shekels, and a bar of gold weighing 50 shekels, I coveted them and took them. You can see for yourself. They are concealed in the ground inside my tent, with the money under the cloak."
So Joshua sent messengers who ran to the tent, and there was the cloak, concealed in his tent, with the money underneath.
They took the things from inside the tent, brought them to Joshua and all the Israelites, and spread them out in the LORD's presence.
Then Joshua and all Israel with him took Achan son of Zerah, the silver, the cloak, and the bar of gold, his sons and daughters, his ox, donkey, and sheep, his tent, and all that he had, and brought them up to the Valley of Achor.
Joshua said, "Why have you troubled us? Today the LORD will trouble you!" So all Israel stoned him to death. They burned their bodies, threw stones on them,
and raised over him a large pile of rocks that remains to this day. Then the LORD turned from His burning anger. Therefore that place has been called the Valley of Achor to this day.