So David did as God commanded him, and they drove back the army of the Philistines from Gibeon as far as Gezer.