"Potiphar or Potifar is a person in the Book of Genesis's account of Joseph. Potiphar is said to be the captain of the palace guard and is referred to without name in the Quran. Joseph, sold into slavery by his brothers, is taken to Egypt where he is sold to Potiphar as a household slave. Potiphar makes Joseph the head of his household, but Potiphar's wife, furious at Joseph for resisting her attempts to seduce him, accuses him falsely of attempted rape. Potiphar casts Joseph into prison, from where he later comes to the notice of Pharaoh through his ability to interpret the dreams of other prisoners.
"After Joseph's interpretation of Pharaoh's dreams and his subsequent appointment as overlord of Egypt, Joseph (renamed Zaphnath-Paaneah) married Asenath, the daughter of Poti-Pherah priest of On. Poti-Pherah may have been the same person as Potiphar, in which case Joseph would likely have been married to the daughter of the woman responsible for his false imprisonment.
"Potiphar's wife is not named in the Bible. The medieval Sefer HaYashar, a commentary on the Torah, gives it as Zuleikha, as do many Islamic traditions and thus the Persian poem called Yusuf and Zulaikha from Jami's Haft Awrang ('Seven thrones'). Because of the Egyptian location wherein the scene is staged, it is not impossible to detect in this biblical tale also a more recent echo of the very old Egyptian fable of the two brothers Bata and Anpu."