The Philistines have been mentioned as oppressors of Israel in Jdg 3:31; Jdg 10:7, Jdg 10:11; and the Israelite worship of the gods of the Philistines is spoken of in Jdg 10:6. But this is the first time that we have any detailed history in connection with the Philistines. They continned to be the prominent enemies of Israel until the time of David.
Forty years - The Philistine dominion began before the birth of Samson Jdg 13:5, and was in force during Samson’s twenty years’ judgeship Jdg 14:4; Jdg 15:20. The 40 years are, therefore, about coincident with Samson’s life.