Now the Philistines had arrived and spread out in the valley of Rephaim.