But the Israelites broke faith in regard to the devoted things: Achan son of Carmi son of Zabdi son of Zerah, of the tribe of Judah, took some of the devoted things; and the anger of the Lord burned against the Israelites.
2 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.” And the men went up and spied out Ai. 3 Then they returned to Joshua and said to him, “Not all the people need go up; about two or three thousand men should go up and attack Ai. Since they are so few, do not make the whole people toil up there.” 4 So about three thousand of the people went up there; and they fled before the men of Ai. 5 The men of Ai killed about thirty-six of them, chasing them from outside the gate as far as Shebarim and killing them on the slope. The hearts of the people melted and turned to water.
6 Then Joshua tore his clothes, and fell to the ground on his face before the ark of the Lord until the evening, he and the elders of Israel; and they put dust on their heads. 7 Joshua said, “Ah, Lord God! Why have you brought this people across the Jordan at all, to hand us over to the Amorites so as to destroy us? Would that we had been content to settle beyond the Jordan! 8 O Lord, what can I say, now that Israel has turned their backs to their enemies! 9 The Canaanites and all the inhabitants of the land will hear of it, and surround us, and cut off our name from the earth. Then what will you do for your great name?”
10 The Lord said to Joshua, “Stand up! Why have you fallen upon your face? 11 Israel has sinned; they have transgressed my covenant that I imposed on them. They have taken some of the devoted things; they have stolen, they have acted deceitfully, and they have put them among their own belongings. 12 Therefore the Israelites are unable to stand before their enemies; they turn their backs to their enemies, because they have become a thing devoted for destruction themselves. I will be with you no more, unless you destroy the devoted things from among you.