God said to Jacob, "Get up, go to Bethel, and live there. Build an altar there to the God who appeared to you when you ran away from your brother Esau."
References for Genesis 35:1
Jacob said to his household and to everyone who was with him, "Get rid of the foreign gods you have with you. Clean yourselves and change your clothes.
Then let's rise and go up to Bethel so that I can build an altar there to the God who answered me when I was in trouble and who has been with me wherever I've gone."
So they gave Jacob all of the foreign gods they had, as well as the rings in their ears, and Jacob buried them under the terebinth at Shechem.
When they set out, God made all of the surrounding cities fearful so that they didn't pursue Jacob's sons.
Jacob and all of the people with him arrived in Luz, otherwise known as Bethel, in the land of Canaan.