Verse 21. -
But (even if Joseph was harshly treated in the tower of Heliopolis)
the Lord - Jehovah (
vide on ver. 5) -
was with Joseph (
vide ver. 2),
and showed him mercy (literally,
extended kindness unto him)
, and gave him favor in the eyes of the keeper (or captain)
of the prison (or round house).
39:19-23 Joseph's master believed the accusation. Potiphar, it is likely, chose that prison, because it was the worst; but God designed to open the way to Joseph's honour. Joseph was owned and righted by his God. He was away from all his friends and relations; he had none to help or comfort him; but the Lord was with Joseph, and showed him mercy. Those that have a good conscience in a prison, have a good God there. God gave him favour in the sight of the keeper of the prison; he trusted him to manage the affairs of the prison. A good man will do good wherever he is, and will be a blessing even in bonds and banishment. Let us not forget, through Joseph, to look unto Jesus, who suffered being tempted, yet without sin; who was slandered, and persecuted, and imprisoned, but without cause; who by the cross ascended to the throne. May we be enabled to follow the same path in submitting and in suffering, to the same place of glory.
And the Lord was with Joseph,.... Comforting him with his presence under his afflictions; supporting him with his right hand; sanctifying all his troubles to him, and so causing him to bear them patiently and cheerfully:
and showed him mercy, and gave him favour in the sight of the keeper of the prison; who was the underkeeper to Potiphar; God so wrought upon the heart of this man, that he was merciful to him, and took off the iron fetters, which hurt his feet, and gave him liberty to walk about; and many other favours and kindnesses he showed unto him, as follow.