40:23

וְלֹא־זָכַר שַׂר־הַמַּשְׁקִים אֶת־יוֹסֵף וַיִּשְׁכָּחֵהוּ׃

Yet the chief cupbearer did not remember Yosef, and he forgot him.

Bereshit 40:23

וְלֹא־זָכַר שַׂר־הַמַּשְׁקִים אֶת־יוֹסֵף

Bereshit / Genesis 40:23 · Drash

Bereshit 40:23

וְלֹא־זָכַר שַׂר־הַמַּשְׁקִים אֶת־יוֹסֵף וַיִּשְׁכָּחֵהוּ׃

Yet the chief cupbearer did not remember Yosef, and he forgot him.

Drash דְּרָשׁ

The angel untied the knots

The last verse of the parasha, and the midrash Lekach Tov sums up all of Vayeshev. First the cupbearer's forgetting, which was not of his will, then how the whole parasha is built: Yosef's ten flights, twenty-two "and it was", and eight verses without the letter vav.

Lekach Tov: the cupbearer wanted to remember and tied knots as reminders, and an angel untied them. God said: "though you forgot, I did not forget". Yosef kept the Ten Utterances: "fled" four times, "went out" twice, "outside" four times. And the eight verses of the parasha without an opening vav (ו) stand for circumcision on the eighth day.

How Midrash Lekach Tov explain it

Midrash Lekach Tov But the chief cupbearer did not remember

Perhaps you will say he did not remember by his own will? So it says: "and he forgot him" — against his will. This teaches that every day he set himself conditions to remember him, and an angel came and overturned them. He tied knots to remember him, and an angel came and untied them. The Holy One, blessed is He, said to him: though you forgot, I did not forget. But "He sets an end to darkness, and searches out every limit" (Iyov / Job 28:3). "Until the time His word came, the word of the Eternal tested him" (Tehillim / Psalms 105:19). So it says: "and it was at the end of two years" (41:1). Because Yosef said twice "remember me" and "mention me" (40:14), therefore the chief cupbearer did not remember and forgot him. So it says: "and it was at the end of two years".
I considered in my heart: Yosef the tzaddik kept the Ten Utterances, as it says "and he fled", "and he fled", "and he fled", "and he fled" — four flights. "And he went out", "and he went out" — two goings out. "Outside", "outside", "outside", "outside" — four times. That makes ten. Because he sanctified the Name, it is as if he kept the Ten Utterances. "And he fled" — from the forbidden union, "and he went out" — from sin, "outside" — from sin.
"I searched in my heart" (Kohelet / Ecclesiastes 2:3): in this parasha there are twenty-two "and it was" (וַיְהִי), like the twenty-two letters of the Torah, that we be strong in all of them, for Yosef kept the whole Torah before it was given.
"And I gave my heart to know wisdom" (Kohelet / Ecclesiastes 1:17): in the whole parasha the verses begin with the letter vav (ו), except for eight verses. Their sign: אל״ה א״ב ככ״ב. "These are the generations" (37:2). "Come, let us sell him" (37:27). "She was brought out" (38:25). "There is none greater in this house than I" (39:9). "In three days", the first (40:13). "But if you remember me" (40:14). "For I was stolen" (40:15). "In three days", the last (40:19). Why? Against circumcision, which was given for the eighth day. For the whole parasha is stories with vav, and "vai" (וַי) is "woe": woe at the sale of Yosef, woe at the death of Yehudah's wife and his sons, woe with Potiphar's wife, woe in the prison, woe to Pharaoh's officers. Except for the eight verses we said above, because Osnat, daughter of Poti-fera, merited to be joined to a circumcised man. So too in "and it was in the days when the judges judged" (Rut / Ruth 1:1): all the verses begin with vav except eight verses in the book of Ruth, because Ruth was joined to Boaz, and from her came kingship, as it says: "he is the father of Yishai, the father of David" (Rut / Ruth 4:17).

Takeaway

Ten words of flight in chapter 39: "and he fled" (וַיָּנָס) in verses 12, 13, 15, 18, "and he went out" (וַיֵּצֵא) in 12 and 15, "outside" (הַחוּצָה) in 12, 13, 15, 18.
The sign אל״ה א״ב ככ״ב is the first letters of the eight verses: אֵלֶּה, לְכוּ, הִוא, אֵינֶנּוּ, בְּעוֹד, כִּי, כִּי, בְּעוֹד.
Osnat, daughter of Poti-fera, will become Yosef's wife (41:45). Lekach Tov sees in the eight verses without "woe" a hint of this union.