Genesis 40:1-4
Genesis 40:1-4 NLT
Some time later, Pharaoh’s chief cup-bearer and chief baker offended their royal master. Pharaoh became angry with these two officials, and he put them in the prison where Joseph was, in the palace of the captain of the guard. They remained in prison for quite some time, and the captain of the guard assigned them to Joseph, who looked after them.