13 So the Philistines were defeated, and the Lord prevented them from invading Israel's territory as long as Samuel lived.