Bereshit / Genesis 40:23 · Pshat
וְלֹא־זָכַר שַׂר־הַמַּשְׁקִים אֶת־יוֹסֵף וַיִּשְׁכָּחֵהוּ׃
Yet the chief cupbearer did not remember Yosef, and he forgot him.
Pshat פְּשָׁט
Did not remember, and forgot
The parasha ends with two verbs: "did not remember" and "forgot". Why both? The commentators see two different steps, and the second has a price: two more years in prison.
Rashi: "did not remember" that same day, "forgot" afterwards. Yosef put his trust in the cupbearer, and for this sat two more years, for "happy is the man who made the Eternal his trust". Ibn Ezra: "did not remember" — did not mention him aloud to Pharaoh, "forgot" — in his heart.
How Rashi and Ibn Ezra explain it
Rashi But the chief cupbearer did not remember
On that same day.
And he forgot him.
Afterwards. Because Yosef relied on him to remember him, he had to remain imprisoned two years, as it says: "happy is the man who made the Eternal his trust and did not turn to the arrogant" (Tehillim / Psalms 40:5) — and did not trust in Egypt, which is called "arrogance" (רַהַב).
Ibn Ezra But the chief cupbearer did not remember
He did not mention him aloud to Pharaoh. So too: "and 'the burden of the Eternal' you shall mention no more" (Yirmeyahu / Jeremiah 23:36). "He remembered Vashti" (Esther 2:1).
And he forgot him.
In his heart.
Takeaway
Yosef asked twice: "remember me" (זְכַרְתַּנִי) and "mention me to Pharaoh" (וְהִזְכַּרְתַּנִי, 40:14). The Torah answers twice too: "did not remember" and "forgot".
The next parasha opens "and it was at the end of two years" (41:1). Rashi sees these two years as the price of trusting a man.
"Arrogance" (רַהַב) is the prophet's poetic name for Egypt: "Egypt helps in vain and to no purpose, therefore I have called her 'arrogance'" (Yeshayahu / Isaiah 30:7).