And it came to pass in those days that the Philistines gathered themselves together against Israel to war; and Israel went out to meet them and encamped at Ebenezer, and the Philistines encamped in Aphek.