37 The plan seemed good to Pharaoh and to all his officials. 38 So Pharaoh asked them, “Can we find anyone like this man, one in whom is the spirit of God?”39 Then Pharaoh said to Joseph, “Since God has made all this known to you, there is no one so discerning and wise as you. 40 You shall be in charge of my palace, and all my people are to submit to your orders. Only with respect to the throne will I be greater than you.” - Genesis 45:37-40 (
NIV
)

Joseph started out the day in prison. That very morning started for Joseph behind bars.
He began his day with prison as his abode
.
That wasn't how his day ended.
At some point during the day, someone summoned Joseph. A message was passed down the chain of command that
Pharaoh
wanted to see Joseph. The jailers and guards had get the prisoner and send him under armed guard to the palace to meet with the
king of Egypt
.