ספר הזהר, Bereshit Bereshit · יט
Zohar 53
א
"These are the generations of the heaven and the earth" (Beresheet 2:4). It has been established that wherever it is written: "These (Heb. eleh)," it cancels that which was mentioned before. So the use of the word "These" (conceals) the generations of Formlessness hinted at in the verse: "And the earth was without form" (Beresheet 1:2). In reference to those (generations of formlessness), it is said that the Holy One, blessed be He, created worlds and destroyed them. Thus, it is written: "The earth was without form and void."
ב
Why did the Holy One, blessed be He, create the worlds if he intended to destroy them? It would have been better had he not created them at all. But there certainly must be a secret here. What is the meaning of, 'He destroyed them'? It cannot be that the Holy One, blessed be He, destroyed the makings of His own hands. Furthermore, these are the heavens about which it is said, "For the heavens shall vanish away like smoke..." (Isaiah 51:6). If it is so, then the Holy One, blessed be He, first created and then destroyed (what He created).
ג
The secret is that the Holy One, blessed be He, created the world by the Torah, as it is written: "In the beginning" (Beresheet 1:1), (which is Torah) about which is written: "Hashem created me as the beginning of His way..." (Proverbs 8:22). (Therefore the Torah refers to itself as the beginning). And by this beginning, He created the heavens and the earth. He supported them by (the Torah), for the Covenant is included in "Beresheet (In the beginning)." As it is written: "If My covenant were not day and night, it is as if I have not established the ordinances of heaven and earth" (Jer. 33:25). (The Heavens and the Earth are supported by the Torah and their existence depends on the Torah). These (Heavens) are described: "The heavens are the heavens of Hashem" (Tehilim 115:16). And (the Earth is called) the land of the living. It comprises seven lands, about which King David said, "I will walk before Hashem in the lands of the living" (Tehilim 116:9).
ד
After, He created the heavens and the earth with no form or any foundation (Yesod) - which is the covenant - to support them. Because of this situation, the Holy One, blessed be He, wanted to give the Torah, which represents the covenant of circumcision, to the nations of the world, but because they did not want to receive it, the land remained parched and dry.
ה
This is why: "Let the waters under the heaven be gathered together to one place, and let the dry land appear" (Beresheet 1:9). "...the waters" - the Torah, "to one place" means Yisrael, because the souls of Yisrael come from that place, about which it is written: "Blessed be the glory of Hashem from His place" (Yechezkel 3:12). "The glory of Hashem" - the lower Shechinah, "His place" - the upper Shechinah. And since their souls come from there (Binah) then certainly Yud Hei Vav Hei rests on them. It is written about them: "For Hashem's portion is His people" (Devarim 32:9). This is: "Let the waters be gathered together to one place."
ו
And the Torah symbolizes the civilized world, (because the world was created by, and is sustained by it). The nations of the world who did not accept it have remained wasted and dry. This is that the Holy One, blessed be He, created worlds and destroyed them, (referring to) those who did not maintain the precepts of the Torah. It does not mean that he shattered His own makings, as people may presume. Why should He destroy His own children about whom it is written: "when they were created (Heb. Behibar'am)" (Beresheet 2:4). Behibar'am - they were created by the letter Hei (Heb. Be Hei Bera'am). x
ז
Why did the Holy One, blessed be He, create the worlds if he intended to destroy them? It would have been better had he not created them at all. But there certainly must be a secret here. What is the meaning of, 'He destroyed them'? It cannot be that the Holy One, blessed be He, destroyed the makings of His own hands. Furthermore, these are the heavens about which it is said, "For the heavens shall vanish away like smoke..." (Isaiah 51:6). If it is so, then the Holy One, blessed be He, first created and then destroyed (what He created).
ח
And Moses wanted to bring the proselytes under the wings of the Shechinah and presumed that they also were drawn down from (Malchut, which is) the (small) Hei. Thus, he drew down (the Mochin of) this (small) Hei of Abraham. (The proselytes) brought upon him descent, as it is written: "Go, get you down, for your people...have become corrupt" (Shemot 32:7), (meaning, the caused Israel to sin with the Golden Calf). They did not receive (the Mochin of) the small Hei, with awe of the letter Yud and with love of the letter Hei. So he descended from his grade, which is the letter Vav.
ט
So the letter Vav came down together with (Moshe to) guard him, so he does not perish among them, because according to the secret of reincarnation, he was destined to mingle among the mixed multitude in exile, whose souls originated from the aspect of those of whom it is written: "For the heavens shall vanish away like smoke" (Isaiah 51:6). These are the ones for whom Noah did not plea for mercy. About them, it is written: "They were destroyed from the earth" (Beresheet 7:23), because they came from those of whom it is said, "You shall blot out the remembrance of Amalek" (Devarim 25:19). Moses did not protect himself from them and dropped the (small) Hei among them. For this reason, he shall not enter the land of Yisrael until he brings the Hei back to its place. This is also why he fell from his grade, and the letter Vav descended with him. Because of this, the letter Hei fell down and the letter Vav of Moses shall raise it up.
י
It was through this small Hei, the Hei of Abraham, which is the letter Hei in BeHibar'am that Moses received assistance, and it is written of him: "That caused His glorious arm to go at the right hand of Moses" (Isaiah) 63:12). He took it from there (from among the kelipot) by the power of the letter Vav and brought it with him. Immediately, Yud-Hei rested on it and the vow was fulfilled: "For Yah has sworn by His throne (Heb. Kes, Caf-Samech) that Hashem will have war" (Shemot 17:16). What is "From generation to generation"? This is Moses, about whom it is written: "One generation passes away, and another generation comes..." (Kohelet 1:4). It has already been explained that one generation contains no fewer than 600,000. This refers to Moses, about whom it is said that one woman gave birth in Egypt to 600,000 in one belly (meaning Moshe, who equals 600,000 souls).