And after this it says: "the land had rest under him as judge for forty years." You see how bountiful is the divine clemency. "For eight years the children of Israel had served" for the offenses of many; "for forty years" they endure in peace for the righteousness of one.
Source: HOMILIES ON JUDGES 3