The merchants brought Joseph to Egypt and sold him to Potiphar, the
captain of the life-guard of Pharaoh, the king of Egypt. God was with
Joseph and made him to prosper, and Potiphar made him overseer over his
house. Potiphar’s wife cast her eyes upon Joseph to seduce him; but
Joseph answered: How can I do this great wickedness and sin against God?
She then accused him to her husband, saying: This stranger tried to
seduce me. Potiphar believed his wife, and cast Joseph into prison.
God was with Joseph and gave him favor with the keeper of the prison,
and he set him over the other prisoners. (Gen. 39.)