What does Genesis 40:22 mean?
Just as Joseph said (Genesis 40:12–13), Pharaoh has returned his former chief cupbearer to his prior job (Genesis 40:21). Joseph's explanation of the chief baker's fate also proves deadly accurate (Genesis 40:18–19). Pharaoh also "lifts up" the man's head (Genesis 40:20; Psalm 3:3), only to then execute the baker and leave his corpse hanging for scavengers to defile.We're not told what charges were brought against either the cupbearer or the baker (Genesis 40:1–3). It's possible neither of them was guilty of a literal crime other than "offending" the Pharaoh. Joseph, for his part, was truly innocent (Genesis 39:11–15; 40:14–15). The impression we're left with is that justice for slaves and servants under the Pharaoh in Egypt was based entirely on the whims of the king.
What's certain is the reliability of God to reveal to Joseph the true meaning of prophetic dreams. This fact will become crucial in Joseph's life, but only several years later (Genesis 41:1; 9–14).