Potiphar (// POT-if-ər; Hebrew: פּוֹטִיפַר/פּוֹטִיפָר, Modern: Pōṭīfar, Tiberian: Pōṭīp̄ar/Pōṭīp̄ār; from Late Egyptian: pꜣ-dj-pꜣ-rꜥ, lit. 'he whom Ra gave') is a figure in the Hebrew Bible and the Quran. His name possibly indicates the same figure as Potiphera (Hebrew: פוטיפרע).
Potiphar is the captain of Pharaoh's guard who is said to have purchased Joseph as a slave and, impressed by his intelligence, makes him the master of his household. Potiphar's wife, who was known for her infidelities, took a liking to Joseph, and attempted to seduce him. When Joseph refused her advances, and ran off, leaving his outer vestment in her hands, she retaliated by falsely accusing him of trying to rape her, and Potiphar had Joseph imprisoned.
What happened to Potiphar after that is unclear; some sources identify him as Potipherah, an Egyptian priest whose daughter, Asenath, marries Joseph. The false accusation by Potiphar's wife plays an important role in Joseph's narrative, because had he not been imprisoned, he would not have met the fellow prisoner who introduced him to Pharaoh.
The medieval Sefer HaYashar, a commentary on the Torah, gives Potiphar's wife's name as Zuleikha, as do many Islamic traditions - thus the Persian poem called Yusuf and Zulaikha from Jami's Haft Awrang "Seven thrones".
The story became a very common subject in Western art during the Renaissance and Baroque periods, usually depicting the moment when Joseph tears himself away from the bed containing a more-or-less naked figure of Potiphar's wife. Persian miniatures often illustrate Yusuf and Zulaikha in Jami's Haft Awrang ("Seven thrones").
It is difficult to tie Potiphar or Joseph accurately to a particular pharaoh or time period. According to the Jewish calendar, Joseph was purchased in the year 2216, which is 1544 BC, at the end of the Second Intermediate Period or very beginning of the New Kingdom. The Torah in which the story appears (see also the Bible and the Quran), was the earliest written of the three: c. 600 BC during the Babylonian Exile. According to the documentary hypothesis, the story of Potiphar and his wife is credited to the Yahwist source, and stands in the same place that the stories of the butler and the baker and Pharaoh's dreams stand in the Elohist text.
The story is first related in Quran 12:21-35: An Egyptian purchases Joseph and proposes to adopt him. The Egyptian's wife endeavours to seduce Joseph but he was preserved from her enticements. She accuses Joseph of an attempt to dishonour her. The rent in his garment testifies Joseph's innocence. Azeez believes Joseph and condemns his wife. The sin of Azeez's wife becomes known in the city (Q12:30). The wives of other noblemen, seeing Joseph's beauty, call him an angel. Azeez's wife declares her purpose to imprison Joseph unless he yield to her solicitations. Joseph seeks protection from God who hears his prayer and turns aside their snares but Joseph is imprisoned notwithstanding his innocence.