In the course of time, David defeated the Philistines and subdued them. He took Gath and its villages from the hand of the Philistines.