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

Genesis 40:4

And the chief keeper of the prison committed them to Joseph, and he stood by them; and they were [some] days in the prison.

Read in other translations