The king sent someone to release him. The ruler of nations set him free.
Then Pharaoh sent for Joseph, and immediately he was brought from the prison. After he had shaved and changed his clothes, he came in front of Pharaoh.