Joshua and the elders of Israel tore their clothing in dismay, threw dust on their heads, and bowed face down to the ground before the Ark of the LORD until evening. Then Joshua cried out, “Oh, Sovereign LORD, why did you bring us across the Jordan River if you are going to let the Amorites kill us? If only we had been content to stay on the other side! Lord, what can I say now that Israel has fled from its enemies? For when the Canaanites and all the other people living in the land hear about it, they will surround us and wipe our name off the face of the earth. And then what will happen to the honor of your great name?”
But the LORD said to Joshua, “Get up! Why are you lying on your face like this? Israel has sinned and broken my covenant! They have stolen some of the things that I commanded must be set apart for me. And they have not only stolen them but have lied about it and hidden the things among their own belongings. That is why the Israelites are running from their enemies in defeat. For now Israel itself has been set apart for destruction. I will not remain with you any longer unless you destroy the things among you that were set apart for destruction.
“Get up! Command the people to purify themselves in preparation for tomorrow. For this is what the LORD, the God of Israel, says: Hidden among you, O Israel, are things set apart for the LORD. You will never defeat your enemies until you remove these things from among you.