"It was humiliating to Pharaoh to turn away from the magicians and wise men of his kingdom to consult an alien and a slave, but he was ready to accept the lowliest service if his troubled mind might find relief. Joseph was immediately sent for; he put off his prison attire, and shaved himself, for his hair had grown long during the period of his disgrace and confinement. He was then conducted to the presence of the king. PP 220.1"
"But God hath chosen the foolish things of the world to confound the wise; and God hath chosen the weak things of the world to confound the things which are mighty;"
Both passages illustrate the theme of God using the unlikely (Joseph, a prisoner; the foolish things of the world) to confound the wise and mighty. The connection is thematic, but present.
"“The dream of Pharaoh is one,” said Joseph. “God hath showed Pharaoh what He is about to do.” There were to be seven years of great plenty. Field and garden would yield more abundantly than ever before. And this period was to be followed by seven years of famine. “And the plenty shall not be known in the land by reason of that famine following; for it shall be very grievous.” The repetition of the dream was evidence both of the certainty and nearness of the fulfillment. “Now therefore,” he continued, “let Pharaoh look out a man discreet and wise, and set him over the land of Egypt. Let Pharaoh do this, and let him appoint officers over the land, and take up the fifth part of the land of Egypt in the seven plenteous years. And let them gather all the food of those good years that come, and lay up corn under the hand of Pharaoh, and let them keep food in the cities. And that food shall be for store to the land against the seven years of famine.” PP 220.4"
"This is the thing which I have spoken unto Pharaoh: What God is about to do he sheweth unto Pharaoh."
EGW directly quotes and paraphrases Genesis 41:28 within the larger context of Joseph interpreting Pharaoh's dream. The connection is undeniable.