Bereshit / Genesis 41:1 · Sod
וַיְהִי מִקֵּץ שְׁנָתַיִם יָמִים וּפַרְעֹה חֹלֵם וְהִנֵּה עֹמֵד עַל־הַיְאֹר׃
And it was at the end of two full years: Pharaoh was dreaming, and behold, he was standing by the Nile.
Sod סוֹד
The evil mouth pleads for mercy
The Chasidic masters read this verse as a picture of what happens above. Pharaoh himself becomes a hint of the accuser, and his dream a hint of the moment the accuser turns defender.
Degel Machaneh Ephraim: "at the end" is the last of the sefirot, Malchut. When she is joined with the Holy One, all good comes. Then "Pharaoh" (פַּרְעֹה), that is "an evil mouth" (פֶּה רַע), "dreams" (חֹלֵם), that is "has pity" (חוֹמֵל): the accuser himself pleads for Israel. Baal Shem Tov: the "end of darkness" comes when a person raises the sparks of holiness fallen into the husks, through Torah, commandments and even eating.
How Degel Machaneh Ephraim and Ba'al Shem Tov explain it
Degel Machaneh Ephraim
"And it was at the end of two years, and Pharaoh dreams" and so on. There are many difficulties here: "two years of days" has no explanation, and "and Pharaoh dreams" should have said "and Pharaoh dreamed". It seems to me, by what God in His mercy has granted me, that there is a wondrous secret here, which I received from my master, teacher and grandfather, may the memory of the righteous be a blessing. When Malchut is, Heaven forbid, without union with her husband, all evils come from this, Heaven forbid. And when Malchut is joined with the Holy One, blessed is He, all good and all abundance come from this: livelihood, life and peace, and all the accusers are cancelled, and the accuser becomes a defender, and the evil angel against his will answers "amen". It is known that the attributes are called "days", as it says: "six days God made", it does not say "in six days" but "six days". And the Holy One, blessed is He, is called "day", which includes all the days and attributes. And "year" (שָׁנָה) has the numerical value of "sefirah" (סְפִירָה). One can say that the verse hints: "and it was at the end of two years" — she who is at the end of all the sefirot, that is Malchut. "Days" — when she is joined with the attributes and with God, then surely it is a time of favour, and the accuser becomes a defender, and all good comes into the world: healing, livelihood, blessing, life and peace, and every kind of good hurries to come, because the accuser becomes a defender. And this is what "and Pharaoh" (פַּרְעֹה) hints: the letters of "evil mouth" (פֶּה רַע), the accuser. "Dreams" (חֹלֵם): the letters of "has pity" (חוֹמֵל), meaning he himself has pity on Israel and argues in their favour. So may it be for us and for all Israel, amen.
Ba'al Shem Tov
"And it was at the end of two years" and so on. In the midrash (Bereshit Rabbah, start of chapter 89): "He set an end to darkness" (Iyov / Job 28:3), for as long as the evil inclination is in the world, there is gloom and the shadow of death in the world. The intentions of the Ari, may the memory of the righteous be a blessing, explain the matter of sifting the holy sparks that fell at the time of the breaking. A person must raise them and sift them, from the inanimate to the growing, to the living, to the speaking, to sift out the holy spark that is inside the husk. And this is the purpose of the service of every Jew: in Torah, in commandments and in the intention of eating, as each is explained in its place.
Takeaway
Numerical value: שָׁנָה = 300 + 50 + 5 = 355. סְפִירָה = 60 + 80 + 10 + 200 + 5 = 355.
Letter play: פַּרְעֹה has the same letters as פֶּה רַע (פ, ה, ר, ע). חֹלֵם and חוֹמֵל share ח, ל, מ.
The author of "Degel Machaneh Ephraim" was the Baal Shem Tov's grandson. "My master, teacher and grandfather" in his text is the Baal Shem Tov himself.