David did what the Lord had commanded, and was able to drive the Philistines back from Geba all the way to Gezer.