David did what the Lord commanded him to do, and he defeated the Philistines. He chased them from Geba to Gezer, killing them all along the way.