Genesis 41:10

[Two years ago] Pharaoh was angry with his servants, and he put me in confinement in the house of the captain of the guard, both me and the chief baker.

Genesis 39:20

So Joseph’s master took him and put him in the prison, a place where the king’s prisoners were confined; so he was there in the prison.

Genesis 40:2-3

Pharaoh (Sesostris II) was extremely angry with his two officials, the chief of the cupbearers and the chief of the bakers.

Genesis 37:36

Meanwhile, in Egypt the Midianites sold Joseph [as a slave] to Potiphar, an officer of Pharaoh and the captain of the [royal] guard.

Treasury of Scripture Knowledge

Summary

Pharaoh was wroth with his servants, and put me in ward in the captain of the guard's house, both me and the chief baker:

Captain

Bible References

Pharaoh

Genesis 39:20
So Joseph’s master took him and put him in the prison, a place where the king’s prisoners were confined; so he was there in the prison.
Genesis 40:2
Pharaoh (Sesostris II) was extremely angry with his two officials, the chief of the cupbearers and the chief of the bakers.

Captain

Genesis 37:36
Meanwhile, in Egypt the Midianites sold Joseph [as a slave] to Potiphar, an officer of Pharaoh and the captain of the [royal] guard.