Genesis 46:31-47

31 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.
32 The men are shepherds, for they have been keepers of livestock; and they have brought their flocks, and their herds, and all that they have.'
33 When Pharaoh calls you, and says, "What is your occupation?'
34 you shall say, "Your servants have been keepers of livestock from our youth even until now, both we and our ancestors'—in order that you may settle in the land of Goshen, because all shepherds are abhorrent to the Egyptians."