Parshat Vayeshev5 min read

Joseph Prayed in the Pit and God Answered in Egypt

Joseph lists his disasters to his sons before he dies: the pit, the sale, the false accusation, the prison. Each has a divine counterpart that followed.

Curated by Arthur · Told by Maggid ·
Table of Contents
  1. What He Said Before He Died
  2. The Prayer Nobody Recorded
  3. The Angel Who Intervened
  4. The Four Things That Kept Israel Whole

What He Said Before He Died

Joseph gathered his sons and his brothers around his deathbed and did something unusual. He did not give them instructions about the future. He recited the past. He listed the disasters of his life one by one and named, beside each disaster, what God had done in response.

They let me down into a pit. The Most High brought me up again.

I was sold into slavery. The Lord of all made me free.

I was taken into captivity. His strong hand rescued me.

I was beset with hunger. The Lord Himself nourished me.

I was alone. God comforted me.

I was sick with cold. The Lord healed me.

I was in prison. My Savior showed me favor.

This is from the Testament of Joseph, part of the Testaments of the Twelve Patriarchs, composed around 100 BCE. The dying man is not reviewing his life to process it privately. He is delivering a map. His sons and brothers are going to need to know how this works. Disaster comes. You pray. God responds. The disaster is real. The response is also real. Joseph's litany is a promise built from evidence.

The Prayer Nobody Recorded

Genesis does not mention Joseph praying in the pit. It says his brothers stripped him of the ornamented coat, threw him in an empty cistern, and then sat down to eat. The pit had no water in it, only darkness and the sound of twenty-two men eating lunch above his head. Then the Ishmaelite traders appeared on the road to Egypt and the brothers sold him for twenty pieces of silver.

The Testament of Joseph fills the silence. Joseph prayed during the slavery. He prayed during the attempted seduction by Potiphar's wife, which the Testament describes not as a single incident but as a seven-year campaign - she dressed for him, she undressed for him, she threatened him, she promised him - and during all of it he prayed. He fasted. He wept. He held his ground not through stoicism but through sustained petition to the God of his fathers.

The Angel Who Intervened

Ginzberg's Legends of the Jews, drawing on midrashic traditions about Joseph's time in Potiphar's house, records that Potiphar himself had acquired Joseph with intentions that were not those of a normal master toward a servant. The angel Gabriel intervened physically, in a way the text describes with unsparing specificity, preventing what Potiphar intended. Joseph was protected before he had a chance to resist.

This detail matters to the theology of the Testament. Joseph's survival was not entirely a product of his own virtue, though his virtue was genuine and sustained and costly. It was also a product of divine action operating at a level below his own awareness. He prayed not knowing that his prayers were already being answered by an angel acting on his behalf before the prayer reached completion.

The Four Things That Kept Israel Whole

Midrash Tanchuma Balak 16 supplies the wider context in which Joseph's story sits. When Israel was redeemed from Egypt, the Tanchuma asks why it happened at all - why was this people worth rescuing? The answer is four specific practices Israel had maintained through the entire period of slavery: they did not change their names, they did not change their language, they did not reveal their secrets, and they were not promiscuous. Reuben went down to Egypt and Reuben came back up. The sacred tongue was still spoken in the house. What was private remained private.

Joseph is the founding instance of all four. He kept his name - he was given an Egyptian name by Pharaoh but his Hebrew identity held underneath it. He was not promiscuous - the entire period of testing by Potiphar's wife is a sustained testimony to this. He did not reveal his secrets - he did not tell Potiphar's wife or her household who he was or what he carried. And the Hebrew tongue had been Joseph's from birth. The people who maintained these four practices long enough to be redeemed were maintaining what Joseph had modeled in the most exposed and isolated circumstances a man of Israel had ever faced.


← All myths

From the tradition

Sources

3 sources

The texts this telling draws on, in full. Open a card to read inline, or expand it for a wider, quieter read.

Testament of JosephTestaments of the Twelve Patriarchs

Joseph, eleventh son of Jacob, beloved of Rachel, was about to die. He called his sons and brethren together and spoke.

"My brethren and my children, hearken to Joseph the beloved of Israel. I have seen in my life envy and death, yet I went not astray, but persevered in the truth of the Lord."

He laid it out like a psalm of survival: "These my brethren hated me, but the Lord loved me. They wished to slay me, but the God of my fathers guarded me. They let me down into a pit, and the Most High brought me up again. I was sold into slavery, and the Lord of all made me free. I was taken into captivity, and His strong hand rescued me. I was beset with hunger, and the Lord Himself nourished me. I was alone, and God comforted me. I was sick, and the Lord visited me. I was in prison, and my God showed favor to me. In bonds, and He released me. Slandered, and He pleaded my cause. Envied by my fellow-slaves, and He exalted me."

Then he told the full story of the Egyptian woman.

The chief captain of Pharaoh, Pentephris, entrusted Joseph with his house. But the captain's wife, a Memphian woman, began her campaign. She urged Joseph to transgress with her. The God of Israel delivered him from the burning flame. She threatened him with death. She summoned him for punishment, then called him back. She offered to make him lord of everything she owned.

Joseph remembered the words of his father, went into his chamber, wept, and prayed to the Lord. He fasted for seven years. To the Egyptians, he appeared to be living delicately, "for those who fast for God's sake receive beauty of face." When his master was away, Joseph drank no wine and for three days at a time took no food, giving it instead to the poor and sick (Genesis 39:7-12).

The woman came to him at night, pretending to visit. She embraced him as a son, then tried to draw him into sin. He declared the words of the Most High to her, hoping she might repent. She tried flattery, praising his chastity before her husband while scheming in private. She offered to abandon her idols if he would lie with her. She threatened to poison her own husband and take Joseph as her spouse. Joseph rent his garments: "Woman, reverence God, and do not this evil deed!"

She sent food mingled with enchantments. Joseph saw a vision of a terrible figure holding a sword within the dish. He wept and refused to eat. When she confronted him, he told her: "The God of my father has revealed your wickedness by His angel." To prove the enchantment was powerless against those who worship God with chastity, he prayed and ate the poisoned food before her eyes, unharmed. She fell at his feet weeping and promised to stop.

But she did not stop. She feigned illness, groaning and sighing. She threatened to hang herself or throw herself off a cliff. Joseph, seeing the spirit of Beliar troubling her, prayed to the Lord and counseled her to think of her children and reputation.

Finally, she seized his garment by force, dragging him. He left it behind and fled naked. She used the garment to accuse him falsely, and her husband had Joseph thrown into prison and scourged (Genesis 39:13-20). Even from prison, she sent messages: "Consent to fulfill my desire, and I will release you from your bonds." Not even in thought did Joseph incline to her.

"Ye see, my children, how great things patience works, and prayer with fasting," Joseph said. "If you follow after chastity and purity with patience and prayer, with fasting in humility of heart, the Lord will dwell among you, because He loves chastity."

He told of his humility. When the Ishmaelites asked if he was a slave, Joseph said yes, to protect his brothers from shame. When the eldest merchant said, "You are not a slave, for even your appearance makes it clear," Joseph insisted he was. When the Memphian woman arranged for Pentephris to buy him, and Joseph was beaten to make him confess his true identity, he maintained his story. Even when the Ishmaelites returned and revealed he was the son of a mighty man in Canaan, and Joseph's bowels dissolved and his heart melted with the desire to weep, he restrained himself to protect his brothers.

"Do you also love one another," he said, "and with long-suffering hide one another's faults. For God delights in the unity of brethren." When his brothers came to Egypt, Joseph returned their money, did not upbraid them, and comforted them. After Jacob's death, he loved them more abundantly. Their children were his children. Their suffering was his suffering. Their sickness was his infirmity. "I exalted not myself among them in arrogance because of my worldly glory," Joseph said, "but I was among them as one of the least."

He recounted a vision: twelve harts feeding, nine scattered, then three preserved, then all scattered, then restored as lambs crying to the Lord. God brought them into a flourishing, well-watered place, out of darkness into light. They became twelve sheep, then many flocks. Twelve bulls suckled one cow that produced a sea of milk. The horns of the fourth bull went up to heaven and became a wall for the flocks.

"Observe the commandments of the Lord," Joseph concluded, "and honor Levi and Judah, for from them shall arise one who saves Israel. His kingdom is an everlasting kingdom, which shall not pass away." He commanded them to carry his bones to Hebron and to bury Asenath near Rachel.

Joseph stretched out his feet and died at a good old age. All Israel mourned for him, and all Egypt with a great mourning. When the children of Israel went out of Egypt, they took his bones and buried him in Hebron with his fathers. The years of his life were a hundred and ten (Genesis 50:26).

Full source
Legends of the Jews 1:90Legends of the Jews

Legends of the Jews turns to Gabriel Protected Joseph from Potiphar's Wicked Intentions.

He ends up in the service of Potiphar – or Poti-phera as he's sometimes known – an Egyptian priest steeped in idolatry. Now, Ginzberg’s Legends of the Jews (that incredible treasure trove of midrashic (rabbinic interpretive commentary) lore) tells us that Potiphar had less-than-holy intentions for the handsome young Joseph. Let's just say Potiphar's intentions were "lewd."

The angel Gabriel, ever watchful, intervenes! According to the legend, Gabriel “mutilated him in such a manner that he could not accomplish it.” It makes you wonder about the behind-the-scenes battles being fought for Joseph’s soul.

Despite his circumstances, Joseph remains steadfast in his faith. Potiphar notices that Joseph, even while performing his duties, is constantly murmuring prayers. "O Lord of the world," Joseph would whisper, "Thou art my trust, Thou art my protection. Let me find grace and favor in Thy sight and in the sight of all that see me, and in the sight of my master Potiphar."

Can you picture it? Joseph, in this foreign land, clinging to his belief in Adonai, in the face of… well, everything.

Potiphar, naturally suspicious, confronts Joseph. "Dost thou purpose to cast a spell upon me?" he asks. It's a fair question, considering the prevalent belief in magic and incantations in those times.

But Joseph's response is simple and direct. "Nay," he replies, "I am beseeching God to let me find favor in thine eyes."

It’s such a human moment, isn't it? Joseph isn't trying to manipulate or deceive. He's simply asking for divine favor, for grace in the eyes of his master. And it highlights a key theme throughout the Joseph narrative: his unwavering faith, even when surrounded by temptation and adversity.

It begs the question: In our own lives, when faced with difficult circumstances, do we remember to whisper our own prayers, asking for grace and favor? And do we, like Joseph, remain true to our values, even when no one is watching?

Full source
Midrash Tanchuma, Balak 16Midrash Tanchuma

(Numb. 25:1:) “While Israel was staying at Shittim, [the people began to go whoring].” Let our master instruct us: By virtue of how many things was Israel redeemed from Egypt? Thus have our masters taught: Israel was redeemed from Egypt by virtue of four things: (1) that they did not change their names, (2) that they did not change their language, (3) that they did not disclose their secrets, and (4) that they were not unbridled in unchastity. They did not change their names. Thus Reuben and Simeon went down (to Egypt), and Reuben and Simeon (with no name change) came up (from Egypt). They did not change their language, as stated (in Gen. 45:12), “that it is my mouth (i.e., my language) which is speaking unto you.” Thus they were talking in the sacred tongue. They did not reveal their secrets, as stated (in Exod. 3:22), “But each woman shall borrow [objects of silver, objects of gold, and clothing] from her neighbor [and from the woman who sojourns in her house].” Now the command was entrusted to them for twelve months, but they never revealed it to the Egyptians. And they were not unbridled in unchastity, as stated (in Cant. 4:12), “A locked garden is my sister my bride,” these are the males; “a locked fountain, a sealed spring,” these are the virgins (the females). You yourself know that it is so, since there was [but] one exception and Scripture aired her case (in Lev. 24:10), “Now there went out the son of an Israelite woman….” Now in all those forty years that they were in the desert, they never committed the sin of unchastity, until they came to Shittim. It is therefore stated (in Numb. 25:1), “While Israel was staying at Shittim, [the people began to go whoring].” At Shittim, because they had committed folly (shetut), as stated (in Prov. 6:32), “One who commits adultery with a woman has no sense.”

Full source