When Joshua had dismissed the people, the sons of Israel went each to his inheritance to possess the land. The people served the LORD all the days of Joshua, and all the days of the elders who survived Joshua, who had seen all the great work of the LORD which He had done for Israel. Then Joshua the son of Nun, the servant of the LORD, died at the age of one hundred and ten. And they buried him in the territory of his inheritance in Timnath-heres, in the hill country of Ephraim, north of Mount Gaash. All that generation also were gathered to their fathers; and there arose another generation after them who did not know the LORD, nor yet the work which He had done for Israel.
Then the sons of Israel did evil in the sight of the LORD and served the Baals, and they forsook the LORD, the God of their fathers, who had brought them out of the land of Egypt, and followed other gods from among the gods of the peoples who were around them, and bowed themselves down to them; thus they provoked the LORD to anger. So they forsook the LORD and served Baal and the Ashtaroth. The anger of the LORD burned against Israel, and He gave them into the hands of plunderers who plundered them; and He sold them into the hands of their enemies around them, so that they could no longer stand before their enemies. Wherever they went, the hand of the LORD was against them for evil, as the LORD had spoken and as the LORD had sworn to them, so that they were severely distressed.
Then the LORD raised up judges who delivered them from the hands of those who plundered them. Yet they did not listen to their judges, for they played the harlot after other gods and bowed themselves down to them. They turned aside quickly from the way in which their fathers had walked in obeying the commandments of the LORD; they did not do as their fathers. When the LORD raised up judges for them, the LORD was with the judge and delivered them from the hand of their enemies all the days of the judge; for the LORD was moved to pity by their groaning because of those who oppressed and afflicted them. But it came about when the judge died, that they would turn back and act more corruptly than their fathers, in following other gods to serve them and bow down to them; they did not abandon their practices or their stubborn ways. So the anger of the LORD burned against Israel, and He said, “Because this nation has transgressed My covenant which I commanded their fathers and has not listened to My voice, I also will no longer drive out before them any of the nations which Joshua left when he died, in order to test Israel by them, whether they will keep the way of the LORD to walk in it as their fathers did, or not.” So the LORD allowed those nations to remain, not driving them out quickly; and He did not give them into the hand of Joshua.