Moses
Genesis 39:22ESV·traditional attribution

And the keeper of the prison put Joseph in charge of all the prisoners who were in the prison. Whatever was done there, he was the one who did it.

Matthew Henry Presbyterian @wholebiblehenry

Here is, 1. Joseph wronged by his master. He believed the accusation, and either Joseph durst not make his defence by telling the truth, as it would reflect too much upon his mistress, or his master would not hear it, or would not believe it, and there is no remedy, he is condemned to perpetual imprisonment, Gen 39:19, Gen 39:20.

Commenting on Genesis 39:19-23

John Gill Reformed Baptist @doctorgill

And the keeper of the prison committed to Joseph's hand all the prisoners that were in the prisons,.... Who, as they were state prisoners, were a considerable charge; and this gave Joseph great honour, credit, and influence in the prison: and whatsoever they did there, he was the doer of it; not that he learned and exercised every trade the prisoners were of, to get...

Geneva Bible Notes Reformed @genevanotes

And the keeper of the prison committed to Joseph's hand all the prisoners that [were] in the prison; and whatsoever they did there, he was the doer [of it]. (k) That is, nothing was done without his commandment.