1 Samuel 4 - 5

1 And the word of Samuel came to all Israel. Now Israel went out to battle against the Philistines, and encamped beside Ebenezer; and the Philistines encamped in Aphek. 2 Then the Philistines put themselves in battle array against Israel. And when they joined battle, Israel was defeated by the Philistines, who killed about four thousand men of the army in the field. 3 And when the people had come into the camp, the elders of Israel said, “Why has the LORD defeated us today before the Philistines? Let us bring the ark of the covenant of the LORD from Shiloh to us, that when it comes among us it may save us from the hand of our enemies.” 4 So the people sent to Shiloh, that they might bring from there the ark of the covenant of the LORD of hosts, who dwells between the cherubim. And the two sons of Eli, Hophni and Phinehas, were there with the ark of the covenant of God.
Read more at BlueLetterBible.org