Genesis 26:1-2

1 Now there was a famine in the land, besides the former famine that had occurred in the days of Abraham. And Isaac went to Gerar, to King Abimelech of the Philistines.
2 The Lord appeared to Isaac and said, "Do not go down to Egypt; settle in the land that I shall show you.