Forthwith at the king’s command, Joseph was brought out of the prison, and they shaved him, and changing his apparel, brought him in to him.
Adam Clarke
They brought him hastily out of the dungeon - Pharaoh was in perplexity on account of his dreams; and when he heard of Joseph, he sent immediately to get him brought before him. He shaved himself - having let his beard grow all the time he was in prison, he now trimmed it, for it is not likely that either the Egyptians or Hebrews shaved themselves in our sense of the word: the change of raiment was, no doubt, furnished out of the king's wardrobe; as Joseph, in his present circumstances, could not be supposed to have any changes of raiment.
Imported from an open dataset — not yet checked against the printed edition.