Genesis 37:36

37:36 Now in Egypt the Midianites sold Joseph to Potiphar, one of Pharaoh’s officials, the captain of the guard.

Genesis 40:2

40:2 Pharaoh was enraged with his two officials, the cupbearer and the baker,

Genesis 39:1

Joseph and Potiphar’s Wife

39:1 Now Joseph had been brought down to Egypt. An Egyptian named Potiphar, an official of Pharaoh and the captain of the guard, purchased him from the Ishmaelites who had brought him there.

Genesis 40:7

40:7 So he asked Pharaoh’s officials, who were with him in custody in his master’s house, “Why do you look so sad today?”