Yup...some time ago I did some reading about his case,including a suggestion that some time after his death evidence emerged that he may have,in fact,been innocent...wrongly accused.
this is why bible tells us to trust God with our own heart and lean not on our own understanding. in All our ways acknowledge Him and HE will make straight our path. Joseph spent years in prison wrongly accused and yet God used it for good and prospered Joseph..