Gideon’s Death

28 Thus Midian was subdued before the Israelites and did not raise its head again. During Gideon’s lifetime, the land had peace forty years.

Read Judges 8:28 Using Other Translations

Thus was Midian subdued before the children of Israel, so that they lifted up their heads no more. And the country was in quietness forty years in the days of Gideon.
So Midian was subdued before the people of Israel, and they raised their heads no more. And the land had rest forty years in the days of Gideon.
That is the story of how the people of Israel defeated Midian, which never recovered. Throughout the rest of Gideon’s lifetime—about forty years—there was peace in the land.