David did as God commanded, and he and his men defeated the Philistine army all the way from Gibeon to Gezer.