1:4

וַיַּרְא אֱלֹהִים אֶת־הָאוֹר כִּי־טוֹב וַיַּבְדֵּל אֱלֹהִים בֵּין הָאוֹר וּבֵין הַחֹשֶׁךְ׃

And the Almighty saw the light, that it was good, and the Almighty separated the light from the darkness.

Bereshit 1:4

וַיַּרְא אֱלֹהִים אֶת־הָאוֹר

Bereshit / Genesis 1:4 · Sod

Bereshit 1:4

וַיַּרְא אֱלֹהִים אֶת־הָאוֹר כִּי־טוֹב וַיַּבְדֵּל אֱלֹהִים בֵּין הָאוֹר וּבֵין הַחֹשֶׁךְ׃

And the Almighty saw the light, that it was good, and the Almighty separated the light from the darkness.

Sod סוֹד

Where the first light is hidden

Where do you hide what is most precious? Where only those who truly need it will find it.

The first light is hidden in the Torah, says Degel Machaneh Ephraim: the words "the light" (אֶת הָאוֹר) and "in the Torah" (בַּתּוֹרָה) share one number. Through the Torah the righteous of every generation see from one end of the world to the other. And "separated the light from the darkness", reads Baal HaSulam, is not a break but a parting for a meeting face to face, like a dispute between those who love, which holds up the world.

How Degel Machaneh Ephraim and Baal HaSulam explain it

Degel Machaneh Ephraim And the Almighty saw the light, that it was good

The midrash says: "good" to hide it away. And He hid it away for the righteous, and the righteous use it in every generation.

I heard from my master, my grandfather, may his soul rest in Eden, where this light was hidden: he said that the Eternal hid it in the Torah. That is why the righteous in every generation use this light, through the Torah. The very light is in it, the light by which one can see from one end of the world to the other.

My own eyes saw this in several stories. My grandfather wrote to my great-uncle, the late Rabbi Gershon of Kuty, in the Land of Israel, that he had seen him on Shabbat outside the Land, and asked what he had been doing there. My great-uncle answered him in a letter: on that Shabbat a wealthy man outside the Land held a circumcision and sent for him to perform it. And there were many more like these, more than these pages can hold: my grandfather truly saw from one end of the world to the other. And all of it came through that light hidden in the Torah.

One may say the verse hints at this. The Ba'al HaTurim explains that "the light" (אֶת הָאוֹר) equals "in the Torah" (בַּתּוֹרָה) by the numerical value of the letters. So the verse says it outright: "And the Almighty saw the light, that it was good," good to hide it away. And where did He hide it? In "the light" itself, that is, in the Torah, whose number is the number of "the light". Understand this.

Baal HaSulam And the Almighty separated the light from the darkness

One might think that the words "And the Almighty separated the light from the darkness" speak of a real separation, that is, of a splitting apart of light and darkness. But this is not so. The meaning is that the day comes from the side of the light, that is, the right side, and the night comes from the side of the darkness, that is, the left.

When they came out and ruled together, He separated them. The separation was from his side, that is, of the Small Face (זְעֵיר אַנְפִּין), so that they would look face to face and merge with each other, so that they would be completely one. This is the secret of the separation in the order of illumination, which is considered "a dispute of love and affection and the existence of the world", because it works in the secret of union (זִוּוּג) for the existence of the world.

Takeaway

The author, Rabbi Moshe Chaim Ephraim of Sudilkov, was the grandson of the Ba'al Shem Tov, the founder of Chasidism, and "my grandfather" here is the Ba'al Shem Tov, and Rabbi Gershon of Kuty was his wife's brother.
Baal HaSulam writes this in the Sulam, his commentary on the Zohar, and the words of the Zohar itself are left out of the translation (Zohar, Bereshit 32:5), because he repeats them in his own words (Sulam on Zohar, Bereshit I 331:2).
The Small Face (זְעֵיר אַנְפִּין) includes six qualities: kindness, strength and restraint, beauty, victory, majesty and foundation (Baal HaSulam, General Introduction to the Wisdom of Kabbalah, 4).
In the Pshat of this verse Rashi reads "separated" as boundaries: the light gets its domain by day, and the darkness its domain by night (Rashi on Bereshit / Genesis 1:4).