Genesis 46:1-7, 28-34
So Israel took his journey with all that he had, and came to Beer-sheba, and offered sacrifices to the God of his father Isaac. And God spoke to Israel in visions of the night, and said, "Jacob, Jacob." And he said, "Here am I." Then he said, "I am God, the God of your father; do not be afraid to go down to Egypt; for I will there make of you a great nation. I will go down with you to Egypt, and I will also bring you up again; and Joseph's hand shall close your eyes." Then Jacob set out from Beer-sheba; and the sons of Israel carried Jacob their father, their little ones, and their wives, in the wagons which Pharaoh had sent to carry him. They also took their cattle and their goods, which they had gained in the land of Canaan, and came into Egypt, Jacob and all his offspring with him, his sons, and his sons' sons with him, his daughters, and his sons' daughters; all his offspring he brought with him into Egypt.
He sent Judah before him to Joseph, to appear before him in Goshen; and they came into the land of Goshen. Then Joseph made ready his chariot and went up to meet Israel his father in Goshen; and he presented himself to him, and fell on his neck, and wept on his neck a good while. Israel said to Joseph, "Now let me die, since I have seen your face and know that you are still alive." Joseph said to his brothers and to his father's household, "I will go up and tell Pharaoh, and will say to him, `My brothers and my father's household, who were in the land of Canaan, have come to me; and the men are shepherds, for they have been keepers of cattle; and they have brought their flocks, and their herds, and all that they have.' When Pharaoh calls you, and says, `What is your occupation?' you shall say, `Your servants have been keepers of cattle from our youth even until now, both we and our fathers,' in order that you may dwell in the land of Goshen; for every shepherd is an abomination to the Egyptians."