Then Saul and the men of Israel were gathered and encamped in the valley of Elah, and they formed ranks for the battle to meet the Philistines.