Moses
Genesis 39:20BSB·traditional attribution

So Joseph’s master took him and had him thrown into the prison where the king’s prisoners were confined. While Joseph was there in the prison,

John Calvin Reformed @genevareformer

20. And put him into the prison. Though Moses does not state with what degree of severity Joseph was afflicted at the beginning of his imprisonment, yet we readily gather that he was not allowed any liberty, but was thrust into some obscure dungeon. The authority of Potiphar was paramount; he had the keeper of the prison under his power, and at his disposal.

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 Joseph's master took him, and put him into the prison,.... Which was in or adjoining to his house, Gen 40:3; of himself he had power to do this, as the captain of the guard; and as he was the chief of the executioners, as some take his office to be, it is much he did not in his passion deliver him up into their...