These are the nations that the LORD left to test all those Israelites who had no firsthand knowledge of the wars of Canaan.
They survived only to teach war to the generations of Israelites who had no firsthand knowledge of the earlier wars:
the five rulers of the Philistines, and all the Canaanites, Sidonians, and Hivites who lived in the highlands of Lebanon from Mount Baal-hermon to Lebo-hamath.
They were to be the test for Israel, to find out whether they would obey the LORD's commands, which he had made to their ancestors through Moses.
So the Israelites lived among the Canaanites, Hittites, Amorites, Perizzites, Hivites, and Jebusites.
But the Israelites intermarried with them and served their gods.
The Israelites did things that the LORD saw as evil, and they forgot the LORD their God. They served the Baals and the Asherahs.a8
The LORD became angry with Israel and gave them over to King Cushan-rishathaim of Aram-naharaim. The Israelites served Cushan-rishathaim eight years.
But then they cried out to the LORD. So the LORD raised up a deliverer for the Israelites, Othniel, Kenaz's son, Caleb's younger brother, who rescued them.
The LORD's spirit was in Othniel, and he led Israel. When he marched out for war, the LORD handed over Aram's King Cushan-rishathaim. Othniel overpowered Cushan-rishathaim,
and the land was peaceful for forty years, until Othniel, Kenaz's son, died.
The Israelites again did things that the LORD saw as evil, and the LORD put Moab's King Eglon in power over them, because they did these things that the LORD saw as evil.
He convinced the Ammonites and Amalekites to join him, defeated Israel, and took possession of Palm City.
So the Israelites served Moab's King Eglon eighteen years.
Then the Israelites cried out to the LORD. So the LORD raised up a deliverer for them, Ehud, Gera's son, a Benjaminite, who was left-handed. The Israelites sent him to take their tribute payment to Moab's King Eglon.
Now Ehud made for himself a double-edged sword that was about a foot and a half long, and he strapped it on his right thigh under his clothes.
Then he presented the tribute payment to Moab's King Eglon, who was a very fat man.
When he had finished delivering the tribute payment, Ehud sent on their way the people who had carried it.
But he himself turned back at the carved stones near Gilgal, and he said, "I have a secret message for you, King." So Eglon said, "Hush!" and all his attendants went out of his presence.
Ehud approached him while he was sitting alone in his cool second-story room, and he said, "I have a message from God for you." At that, Eglon got up from his throne.
Ehud reached with his left hand and grabbed the sword from his right thigh. He stabbed it into Eglon's stomach,
and even the handle went in after the blade. Since he did not pull the sword out of his stomach, the fat closed over the blade, and his guts spilled out.b23
Ehud slipped out to the porch, and closed and locked the doors of the second-story room behind him.
After Ehud had slipped out, the king's servants came and found that the room's doors were locked. So they thought, He must be relieving himself in the cool chamber.
They waited so long that they were embarrassed, but he never opened the doors of the room. Then they used the key to open them, and there was their master lying dead on the ground!
Ehud had gotten away while they were waiting and had passed the carved stones and escaped to Seirah.
When he arrived, he blew the ram's horn in the Ephraim highlands. So the Israelites went down from the highlands with Ehud leading them.
He told them, "Follow me, for the LORD has handed over your enemies the Moabites." So they followed him, and they took control of the crossing points of the Jordan in the direction of Moab, allowing no one to cross.
This time, they defeated the Moabites, about ten thousand big and strong men, and no one escaped.
Moab was brought down by the power of Israel on that day, and there was peace in the land for eighty years.