These are the nations the LORD left to test all those Israelites who had not experienced any of the wars in Canaan
(he did this only to teach warfare to the descendants of the Israelites who had not had previous battle experience):
the five rulers of the Philistines, all the Canaanites, the Sidonians, and the Hivites living in the Lebanon mountains from Mount Baal Hermon to Lebo Hamath.
They were left to test the Israelites to see whether they would obey the LORD’s commands, which he had given their ancestors through Moses.
The Israelites lived among the Canaanites, Hittites, Amorites, Perizzites, Hivites and Jebusites.
They took their daughters in marriage and gave their own daughters to their sons, and served their gods.
The Israelites did evil in the eyes of the LORD; they forgot the LORD their God and served the Baals and the Asherahs.
The anger of the LORD burned against Israel so that he sold them into the hands of Cushan-Rishathaim king of Aram Naharaim, to whom the Israelites were subject for eight years.
But when they cried out to the LORD, he raised up for them a deliverer, Othniel son of Kenaz, Caleb’s younger brother, who saved them.
The Spirit of the LORD came on him, so that he became Israel’s judge and went to war. The LORD gave Cushan-Rishathaim king of Aram into the hands of Othniel, who overpowered him.
So the land had peace for forty years, until Othniel son of Kenaz died.
Again the Israelites did evil in the eyes of the LORD, and because they did this evil the LORD gave Eglon king of Moab power over Israel.
Getting the Ammonites and Amalekites to join him, Eglon came and attacked Israel, and they took possession of the City of Palms.
The Israelites were subject to Eglon king of Moab for eighteen years.
Again the Israelites cried out to the LORD, and he gave them a deliverer—Ehud, a left-handed man, the son of Gera the Benjamite. The Israelites sent him with tribute to Eglon king of Moab.
Now Ehud had made a double-edged sword about a cubit long, which he strapped to his right thigh under his clothing.
He presented the tribute to Eglon king of Moab, who was a very fat man.
After Ehud had presented the tribute, he sent on their way those who had carried it.
But on reaching the stone images near Gilgal he himself went back to Eglon and said, “Your Majesty, I have a secret message for you.” The king said to his attendants, “Leave us!” And they all left.