NET
21 But the Lord was with Joseph and showed him kindness. He granted him favor in the sight of the prison warden.
Darby
21 And Jehovah was with Joseph, and extended mercy to him, and gave him favour in the eyes of the chief of the tower-house.
KJV
21 But the LORD was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison.