Israel was not used to being defeated so the people cried to God. They reminded Him that their defeat would affect His reputation.
O Lord, what shall I say when Israel turns its back before its enemies? For the Canaanites and all the inhabitants of the land will hear it, and surround us, and cut off our name from the earth. Then what will You do for Your great name?”
God answered that they had sinned by bringing unholy articles into the camp and then lied to cover it up. God will always turn His face away from sin.
So the Lord said to Joshua: “Get up! Why do you lie thus on your face? Israel has sinned, and they have also transgressed My covenant which I commanded them. For they have even taken some of the accursed things, and have both stolen and deceived; and they have also put it among their own stuff. Therefore the children of Israel could not stand before their enemies, but turned their backs before their enemies, because they have become doomed to destruction. Neither will I be with you anymore, unless you destroy the accursed from among you. Get up, sanctify the people, and say, ‘Sanctify yourselves for tomorrow, because thus says the Lord God of Israel: “There is an accursed thing in your midst, O Israel; you cannot stand before your enemies until you take away the accursed thing from among you.”
Only as the people of Israel lead holy lives will they be able to defeat their enemies.
PRAY THAT ISRAEL WILL TURN AWAY FROM SIN AND LEAD HOLY LIVES