Some time later, David defeated the Philistines and subdued them, and he captured Gath and its nearby towns from the Philistines.
Read & study FBV 18:1And after this it came to pass, that David smote the Philistines, and subdued them, and took Gath and its towns out of the hand of the Philistines.
Read & study ASV 18:1