The LORD's angelic messenger went up from Gilgal to Bokim. He said, "I brought you up from Egypt and led you into the land I had solemnly promised to give to your ancestors. I said, 'I will never break my agreement with you,
but you must not make an agreement with the people who live in this land. You should tear down the altars where they worship.' But you have disobeyed me. Why would you do such a thing?
At that time I also warned you, 'If you disobey, I will not drive out the Canaanites before you. They will ensnare you and their gods will lure you away.'"
The people worshiped the LORD throughout Joshua's lifetime and as long as the elderly men who outlived him remained alive. These men had witnessed all the great things the LORD had done for Israel.
That entire generation passed away; a new generation grew up that had not personally experienced the LORD's presence or seen what he had done for Israel.
They abandoned the LORD God of their ancestors who brought them out of the land of Egypt. They followed other gods— the gods of the nations who lived around them. They worshiped them and made the LORD angry.
The LORD was furious with Israel and handed them over to robbers who plundered them. He turned them over to their enemies who lived around them. They could not withstand their enemies' attacks.
But they did not obey their leaders. Instead they prostituted themselves to other gods and worshiped them. They quickly turned aside from the path their ancestors had walked. Their ancestors had obeyed the LORD's commands, but they did not.
When the LORD raised up leaders for them, the LORD was with each leader and delivered the people from their enemies while the leader remained alive. The LORD felt sorry for them when they cried out in agony because of what their harsh oppressors did to them.
When a leader died, the next generation would again act more wickedly than the previous one. They would follow after other gods, worshiping them and bowing down to them. They did not give up their practices or their stubborn ways.
Joshua left those nations to test Israel. I wanted to see whether or not the people would carefully walk in the path marked out by the LORD, as their ancestors were careful to do."