The LORD's Messenger Comes to Bokim 1
The angel of the LORD went up from Gilgal to Bokim and said to the Israelites, "I brought you out of Egypt into this land that I swore to give your ancestors, and I said I would never break my covenant with you."
For your part, you were not to make any covenants with the people living in this land; instead, you were to destroy their altars. But you disobeyed my command. Why did you do this?
So now I declare that I will no longer drive out the people living in your land. They will be thorns in your sides, 
and their gods will be a constant temptation to you."
When the angel of the LORD finished speaking to all the Israelites, the people wept loudly.
So they called the place Bokim (which means "weeping"), and they offered sacrifices there to the LORD.
The Death of Joshua 6
After Joshua sent the people away, each of the tribes left to take possession of the land allotted to them.
And the Israelites served the LORD throughout the lifetime of Joshua and the leaders who outlived him—those who had seen all the great things the LORD had done for Israel.
Joshua son of Nun, the servant of the LORD, died at the age of 110.
They buried him in the land he had been allocated, at Timnath-serah 
in the hill country of Ephraim, north of Mount Gaash.
Israel Disobeys the LORD 10
After that generation died, another generation grew up who did not acknowledge the LORD or remember the mighty things he had done for Israel.
The Israelites did evil in the LORD's sight and served the images of Baal.
They abandoned the LORD, the God of their ancestors, who had brought them out of Egypt. They went after other gods, worshiping the gods of the people around them. And they angered the LORD.
They abandoned the LORD to serve Baal and the images of Ashtoreth.
This made the LORD burn with anger against Israel, so he handed them over to raiders who stole their possessions. He turned them over to their enemies all around, and they were no longer able to resist them.
Every time Israel went out to battle, the LORD fought against them, causing them to be defeated, just as he had warned. And the people were in great distress.
The LORD Rescues His People 16
Then the LORD raised up judges to rescue the Israelites from their attackers.
Yet Israel did not listen to the judges but prostituted themselves by worshiping other gods. How quickly they turned away from the path of their ancestors, who had walked in obedience to the LORD's commands.
Whenever the LORD raised up a judge over Israel, he was with that judge and rescued the people from their enemies throughout the judge's lifetime. For the LORD took pity on his people, who were burdened by oppression and suffering.
But when the judge died, the people returned to their corrupt ways, behaving worse than those who had lived before them. They went after other gods, serving and worshiping them. And they refused to give up their evil practices and stubborn ways.
So the LORD burned with anger against Israel. He said, "Because these people have violated my covenant, which I made with their ancestors, and have ignored my commands,
I will no longer drive out the nations that Joshua left unconquered when he died.
I did this to test Israel—to see whether or not they would follow the ways of the LORD as their ancestors did."
That is why the LORD left those nations in place. He did not quickly drive them out or allow Joshua to conquer them all.