And Joseph [was] thirty years old when he stood before
Pharaoh king of Egypt
Interpreting his dreams, and had such honour conferred upon him as to be made his prime minister; from whence it appears that Joseph had now been thirteen years in Egypt, partly in Potiphar's house, and partly in prison, since he was seventeen years of age when he was sold thither, see ( Genesis 37:2 ) : and Joseph went out from the presence of Pharaoh;
from standing before him, and ministering to him as his counsellor and chief statesman, or he went out from his court and palace for a while: and went throughout all the land of Egypt:
this seems to be a second tour; before he went to survey the land, and pitch upon the most proper places for granaries to lay up store of corn in; and now he went through it, to gather in and give directions about it, and see it performed, for the years of plenty were now begun.