Some time later, the king’s cupbearer and baker offended their master, the king of Egypt.
1. And it came to pass after these things. We have already seen, that when Joseph was in bonds, God cared for him. For whence arose the relaxation afforded him, but from the divine favor? Therefore, God, before he opened the door for his servant’s deliverance, entered into the very prison to sustain him with his strength.
We should not have had this story of Pharaoh's butler and baker recorded in scripture if it had not been serviceable to Joseph's preferment. The world stands for the sake of the church, and is governed for its good. Observe, 1. Two of the great officers of Pharaoh's court, having offended the king, are committed to prison.
Commenting on Genesis 40:1-4
And it came to pass after these things,.... After Joseph had been accused and cast into prison, where he had been for some time: that the butler of the king of Egypt and his baker had offended their lord the king of Egypt; committed some fault, at least were accused of one, which raised his displeasure at them.