In the meantime the Ishmaelites had arrived in Egypt and had sold Joseph to Potiphar. Potiphar was one of Pharaoh's officers, the captain of the guard.
Joseph had been taken to Egypt by the Ishmaelites, who had sold him to Potiphar, an Egyptian who was one of Pharaoh's officers, the commander of the royal guard.
One night while they were in prison the cupbearer and the baker for the king of Egypt each had a dream. They were different dreams, each with its own meaning.