Joshua 7:8 O Lord, what shall I say, when Israel turneth their backs before their enemies! 9 For the Canaanites and all the inhabitants of the land shall hear of it, and shall environ us round, and cut off our name from the earth: and what wilt thou do unto thy great name?
[Patriarchs & Prophets pp 494] This was the first time they had met the Canaanites in actual battle, and if put to flight before the defenders of this little town, what would be the result in the greater conflicts before them? Joshua looked upon their ill success as an expression of God's displeasure, and in distress and apprehension he “rent his clothes, and fell to the earth upon his face before the ark of the Lord until the eventide, he and the elders of Israel, and put dust upon their heads.”
“Alas, O Lord God,” he cried, “wherefore hast Thou at all brought this people over Jordan, to deliver us into the hand of the Amorites, to destroy us? ... O Lord, what shall I say, when Israel turneth their backs before their enemies! For the Canaanites and all the inhabitants of the land shall hear of it, and shall environ us round, and cut off our name from the earth: and what wilt Thou do unto Thy great name?”
The answer from Jehovah was, “Get thee up; wherefore liest thou thus upon thy face? Israel hath ... transgressed My covenant which I commanded them.” It was a time for prompt and decided action, and not for despair and lamentation. There was secret sin in the camp, and it must be searched out and put away before the presence and blessing of the Lord could be with His people. “Neither will I be with you any more, except ye destroy the accursed from among you.”
Joshua 7:11 Israel hath sinned, and they have also transgressed my covenant which I commanded them: for they have even taken of the accursed thing, and have also stolen, and dissembled also, and they have put it even among their own stuff.
May God add His blessing to the study of His word. "Good night" and God bless!