Some time later, the cupbearer1 and the baker2 of the king of Egypt offended their master, the king of Egypt.
References for Genesis 40:1
Pharaoh was angry3 with his two officials,4 the chief cupbearer and the chief baker,
References for Genesis 40:2
and put them in custody in the house of the captain of the guard,5 in the same prison where Joseph was confined.
References for Genesis 40:3
The captain of the guard6 assigned them to Joseph,7 and he attended them. After they had been in custody8 for some time,
References for Genesis 40:4
each of the two men--the cupbearer and the baker of the king of Egypt, who were being held in prison--had a dream9 the same night, and each dream had a meaning of its own.10
References for Genesis 40:5
When Joseph came to them the next morning, he saw that they were dejected.