Genesis 40:1-3 It happened sometime later that the king of Egypt's cup-bearer and his baker offended their master the king of Egypt. Pharaoh was angry with his two officials and put them in the jail where Joseph was a prisoner.