David obeyed God and he defeated the Philistines. He even chased them all the way from Gibeon to the entrance to Gezer.