Some time later, David’s army attacked the Philistia army and defeated them. They took control over the entire Philistia area.
Read & study T4T 8:1And after this it came to pass, that David smote the Philistines, and subdued them: and David took the bridle of the mother city out of the hand of the Philistines.
Read & study ASV 8:1