Some time later, Pharaoh's chief cup-bearer and chief baker offended him.
Pharaoh became very angry with these officials,
and he put them in the prison where Joseph was, in the palace of Potiphar, the captain of the guard.
They remained in prison for quite some time, and Potiphar assigned Joseph to take care of them.
One night the cup-bearer and the baker each had a dream, and each dream had its own meaning.
The next morning Joseph noticed the dejected look on their faces.