Genesis 35:1-7 ESV
God said to Jacob, “Arise, go up to Bethel and dwell there. Make an altar there to the God who appeared to you when you fled from your brother Esau.” So Jacob said to his household and to all who were with him, “Put away the foreign gods that are among you and purify yourselves and change your garments. Then let us arise and go up to Bethel, so that I may make there an altar to the God who answers me in the day of my distress and has been with me wherever I have gone.” So they gave to Jacob all the foreign gods that they had, and the rings that were in their ears. Jacob hid them under the terebinth tree that was near Shechem.
And as they journeyed, a terror from God fell upon the cities that were around them, so that they did not pursue the sons of Jacob. And Jacob came to Luz (that is, Bethel), which is in the land of Canaan, he and all the people who were with him, and there he built an altar and called the place El-bethel, because there God had revealed himself to him when he fled from his brother.
ESV: English Standard Version 2016