1Then God said to Jacob, "Arise, go up to Bethel and live there, and make an altar there to God, who appeared to you when you fled from your brother Esau."
2So Jacob said to his household and to all who were with him, "Put away the foreign gods which are among you, and purify yourselves and change your garments;
3and let us arise and go up to Bethel, and I will make an altar there to God, who answered me in the day of my distress and has been with me wherever I have gone."
4So they gave to Jacob all the foreign gods which they had and the rings which were in their ears, and Jacob hid them under the oak which was near Shechem.
5As they journeyed, there was a great terror upon the cities which were around them, and they did not pursue the sons of Jacob.
Through the mess with Dinah and her brothers (Genesis 34), God was able to move Jacob and the family to Bethel (meaning the House of God). Because of this trial, the people also put away their foreign gods and purified themselves. Trials get our attention and if we turn our attention to God, He can do His purifying work and move us closer to Him.