Old Testament readings use the Septuagint , the Scripture the apostles quoted. Masoretic numbering shown for reference.Learn why
KJV

Genesis 39:21

But the Lord was with Joseph, and shewed him mercy, and gave him favour in the sight of the keeper of the prison.

Read in other translations