War came again, so David went out and fought against the Philistines and defeated them thoroughly so that they fled before him.