During the time of Eli the priest at Shiloh, there happened to be a barren woman called Hannah along with her co wife Peninna who had children with Elkanah their husband.
Hannah cried to the lord and vowed to offer his son to God if her womb was opened. When God answered her prayer, she offered Samuel to the temple of God. But the two sons of Eli; Hophni and Phinehas were un faithful and greedy. God speaks to Samuel in his childhood and tells him he would destroy the house of Eli. The Philistines fought against Israel and took the ark of the covenant by which the lord smote them with boils. It was then moved along four other cities by which the lord smote them with boils also.
Samuel intreats Israel to repent and leave other gods for the lord almighty.
The Philistines attack Israel again and God grants Israel victory over them.Samuel then took a stone and set it between Mizpeh and Shen and called the place "Ebenezer" this far the lord has helped us. 1 Samuel 7:12