And it came to pass after these things, [that] the cup-bearer of the king of Egypt and the baker offended their lord the king of Egypt.
And Pharaoh was wroth with his two chamberlains -- with the chief of the cup-bearers and with the chief of the bakers;
and he put them in custody into the house of the captain of the life-guard, into the tower-house, into the place where Joseph was imprisoned.
And the captain of the life-guard appointed Joseph to them, that he should attend on them. And they were [several] days in custody.
And they dreamed a dream, both of them in one night, each his dream, each according to the interpretation of his dream, the cup-bearer and the baker of the king of Egypt, who were imprisoned in the tower-house.
And Joseph came in to them in the morning, and looked on them, and behold, they were sad.
References for Genesis 40:6