So David did what the Lord commanded. He defeated the Philistines and chased them all the way from Gibeon to Gezer.