Here is a list of the nations that Yahweh permitted to remain in the land so he could use them to test the Israelites who had not known what it was like during the Canaanite wars.
So he left in the land the five Philistine principalities and all the Canaanites, Sidonians, and Hivites who lived on Mount Lebanon from Mount Baal Hermon as far as Lebo Hamath.
Therefore Yahweh ’s blazing anger rose up against them. He surrendered them to Cushan-Rishathaim, the king of Mesopotamia. He kept the Israelites in bondage to him for eight years.
Then the Israelites, with shattered hearts, cried out to Yahweh for mercy, and he answered them by raising up a champion-deliverer to rescue them, Othniel. He was Caleb’s nephew, the son of his younger brother Kenaz.
And the Spirit of Yahweh was upon him and empowered him to liberate Israel from bondage. He became Israel’s champion and went out to war, and Yahweh delivered into his hands Cushan-Rishathaim, the king of Mesopotamia. Othniel overpowered him,
The Israelites again did what was evil in Yahweh ’s sight, and because they did what was offensive to Yahweh, he gave King Eglon of Moab power over Israel.
Then the Israelites, with shattered hearts, cried out to Yahweh for mercy, and Yahweh raised up a champion-deliverer to rescue them—Ehud, who was left-handed. He was the son of Gera from the tribe of Benjamin. One day, the Israelites sent him to present tribute to King Eglon of Moab.
Ehud went with them part of the way, but he turned back at the carved stones near Gilgal. He returned to Eglon and said, “Your Majesty, I have a secret message for you.” The king said to his attendants, “Leave us!” After all the king’s servants had left,
Ehud approached King Eglon while he was sitting alone in his cool upper room and said to him, “I have a message from God for you.” As the king rose from his throne,
After he had slipped away, the king’s servants came to the doors of the upper room and discovered they were locked. So they told themselves, “He must be on the toilet.”
They waited and waited, but still the king did not emerge. Embarrassed, they finally took their key and unlocked the doors. And when they opened the doors, there was their master sprawled out on the floor, dead!
When he arrived back in the land, he sounded the war trumpet with a loud blast and rallied the people in the hill country of Ephraim. The Israelites went down from the hills to fight against the Moabites with Ehud leading the charge.
“Follow me closely,” he said, “and pursue them, for Yahweh has delivered your enemies, the Moabites, into your hands!” So they followed his lead and secured the fords of the Jordan opposite the land of Moab and did not let anyone cross.
After Ehud, God raised up Shamgar son of Anath, who killed six hundred Philistines with nothing but an ox-goad, and Shamgar the deliverer rescued Israel.