The children of Israel again did that which was evil in the sight of Yahweh; and Yahweh delivered them into the hand of the Philistines forty years.
"And God gave them into the hand of the Philistines for forty years"  (Judges 13:1).  "This forty years lasted at least unto the second battle of Ebenezer  (1 Samuel 7:10ff)."[1]