The Book of Samuel records that the Philistines were camped at Aphek and the Israelites at Eben-Ezer. The Philistines defeated the Israelites during the first battle, killing 4,000 Israelites. The Israelites then brought up the Ark of the Covenant from Shiloh, thinking that through this "they should have the presence of God with them, and so success", [2] but the Philistines again defeated the Israelites, this time killing 30,000 and capturing the Ark.