In Genesis 40:8, Joseph acknowledges that interpretations belong to God, similar to Daniel's declaration in Daniel 2:27-28, where he credits God with the ability to reveal mysteries.
In Genesis 40:14, Joseph asks the cupbearer to remember him when he is restored, paralleling the thief on the cross in Luke 23:42, who asks Jesus to remember him in His kingdom.
Genesis 40:23 notes that the chief cupbearer forgot Joseph, which is echoed in Psalm 105:19, where it speaks of Joseph being tested until his word came to pass.