David did what God had commanded, and so he drove the Philistines back from Gibeon all the way to Gezer.