And the people of Kiriath-jearim came and took up the ark of the Lord, and brought it to the house of Abinadab on the hill. They consecrated his son, Eleazar, to have charge of the ark of the Lord.
From the day that the ark was lodged at Kiriath-jearim, a long time passed, some twenty years, and all the house of Israel lamented after the Lord.
References for 1 Samuel 7:2
Then Samuel said to all the house of Israel, "If you are returning to the Lord with all your heart, then put away the foreign gods and the Astartes from among you. Direct your heart to the Lord, and serve him only, and he will deliver you out of the hand of the Philistines."
So Israel put away the Baals and the Astartes, and they served the Lord only.
Then Samuel said, "Gather all Israel at Mizpah, and I will pray to the Lord for you."
So they gathered at Mizpah, and drew water and poured it out before the Lord. They fasted that day, and said, "We have sinned against the Lord." And Samuel judged the people of Israel at Mizpah.
When the Philistines heard that the people of Israel had gathered at Mizpah, the lords of the Philistines went up against Israel. And when the people of Israel heard of it they were afraid of the Philistines.