Genesis 41:8

And it came to pass in the morning that his spirit was troubled; and he sent and called for all the magicians of Egypt, and all the wise men thereof: and Pharaoh told them his dream; but there was none that could interpret them unto Pharaoh.

After Joseph had remained two years longer in prison, God gave Pharaoh remarkable dreams. They were two dreams in one night pointing to the same event and foreshadowing some great calamity. In the morning his spirit was troubled, and the trouble continued in his mind because he could not determine their significance or understand them. He sent and called for all the magicians and wise men of Egypt and told them his dreams. He did so expecting they would soon help him understand because of their reputation for solving difficulties.

With all their magic, learning, and boasted wisdom, none of them could interpret or explain the dreams to him. Their failure greatly disappointed Pharaoh, increased his perplexity and distress, and terror spread throughout his palace. Their failure humiliated him by forcing him to turn away from the learned and wise men of his kingdom to accept the humble services of Joseph, a Hebrew slave and servant, to obtain relief for his troubled mind. The general agitation and the sight of the king's distress recalled Joseph to the chief butler's mind, reminding him of his own dream and Joseph's true interpretation of it, with conviction of his forgetfulness and ingratitude. Joseph himself possessed no superior wisdom and no greater knowledge than those Pharaoh had consulted, for God alone can explain such mysteries, and Joseph's modest disclaiming of all honor for himself shows strong faith and humble trust in God to give Pharaoh an answer of peace.