So the men of Kiriath Jearim came and took up the ark of the LORD. They brought it to Abinadab’s house on the hill and consecrated Eleazar his son to guard the ark of the LORD.
References for 1 Samuel 7:1
The ark remained at Kiriath Jearim a long time—twenty years in all. Then all the people of Israel turned back to the LORD.
References for 1 Samuel 7:2
So Samuel said to all the Israelites, “If you are returning to the LORD with all your hearts, then rid yourselves of the foreign gods and the Ashtoreths and commit yourselves to the LORD and serve him only, and he will deliver you out of the hand of the Philistines.”
References for 1 Samuel 7:3
So the Israelites put away their Baals and Ashtoreths, and served the LORD only.