While in prison, the just and good Joseph rose to leadership. He interpreted two dreams that led eventually to his freedom.