Judges 5:31

So let all thine enemies perish, O LORD: but let them that love him be as the sun when he goeth forth in his might. And the land had rest forty years.

The overthrow that left Sisera and his entire host destroyed was followed by forty years of peace and rest for Israel. That long quiet closed the deliverance celebrated in Deborah's song, marking the end of Canaanite oppression. When those forty years ended, the children of Israel again did evil in the sight of the Lord. For that renewed apostasy the Lord delivered them into the hand of Midian for seven years.