“Therefore the children of Israel could not stand before their enemies, but turned their backs before their enemies, because they were accursed: neither will I be with you any more, except ye destroy the accursed from among you.”
King James Version (KJV)
Matthew Henry's Concise Commentary
7:10-15 God awakens Joshua to inquiry, by telling him that when this accursed thing was put away, all would be well. Times of danger and trouble should be times of reformation. We should look at home, into our own hearts, into our own houses, and make diligent search to find out if there be not some accursed thing there, which God sees and abhors; some secret lust, some unlawful gain, some undue withholding from God or from others. We cannot prosper, until the accursed thing be destroyed out of our hearts, and put out of our habitations and our families, and forsaken in our lives. When the sin of sinners finds them out, God is to be acknowledged. With a certain and unerring judgment, the righteous God does and will distinguish between the innocent and the guilty; so that though the righteous are of the same tribe, and family, and household with the wicked, yet they never shall be treated as the wicked.
“O LORD of hosts, God of Israel, that dwellest between the cherubims, thou art the God, even thou alone, of all the kingdoms of the earth: thou hast made heaven and earth.”