Shemot31:18

וַיִּתֵּן אֶל־מֹשֶׁה כְּכַלֹּתוֹ לְדַבֵּר אִתּוֹ בְּהַר סִינַי שְׁנֵי לֻחֹת הָעֵדֻת לֻחֹת אֶבֶן כְּתֻבִים בְּאֶצְבַּע אֱלֹהִים׃

And when He finished speaking with him on Mount Sinai, He gave Moshe the two tablets of the Testimony, tablets of stone, written by the finger of the Almighty.

Shemot 31:18

וַיִּתֵּן אֶל־מֹשֶׁה כְּכַלֹּתוֹ

Shemot / Exodus 31:18 · Sod

Shemot 31:18

וַיִּתֵּן אֶל־מֹשֶׁה כְּכַלֹּתוֹ לְדַבֵּר אִתּוֹ בְּהַר סִינַי שְׁנֵי לֻחֹת הָעֵדֻת לֻחֹת אֶבֶן כְּתֻבִים בְּאֶצְבַּע אֱלֹהִים׃

And when He finished speaking with him on Mount Sinai, He gave Moshe the two tablets of the Testimony, tablets of stone, written by the finger of the Almighty.

Sod סוֹד

Every Day Like the First

Why did Moshe (Moses) learn and forget? The chasidic teachers see in it not weakness but a path.

Me'or Einayim: the Torah is the union of God and Israel, like the union of groom and bride. Constant pleasure is no longer pleasure, so the union must be new every day. Moshe (Moses) forgot until he was given the strength to rise every day to a new level and rejoice in the Torah anew. Sefat Emet: everything follows the end. Forty days of effort exhausted Moshe's soul (כְּלוֹת הַנֶּפֶשׁ), and at the end the Torah came as a gift.

How Me'or Einayim and Sefat Emet explain it

Me'or Einayim And He gave Moshe (Moses), when He finished speaking with him on Mount Sinai

This teaches that Moshe would learn and forget, until the Torah was given to him as a gift, like a bride to a groom. The matter is this: it says, "Moshe commanded us the Torah, an inheritance (מוֹרָשָׁה)" (Devarim / Deuteronomy 33:4), and the sages say: do not read "inheritance" (מוֹרָשָׁה) but "betrothed" (מְאֹרָסָה). We will understand all this so. Through the Torah the union of groom and bride is made, of the community of Israel and the Holy One, blessed is He, as it is written: "You shall call Me: my husband" (Hoshea / Hosea 2:18). And as groom and bride rejoice, so do the Holy One, blessed is He, and the community of Israel, as it says: "As a groom rejoices over a bride, so shall your Almighty rejoice over you" (Yeshayahu / Isaiah 62:5).

He likened us to groom and bride, because constant pleasure is no longer pleasure. Pleasure is only the union of groom and bride, a new union, such as they never had before. So a person must unite anew with the Holy One, blessed is He, every day, as if the Torah were given today, as the sages expounded: let the words of Torah be new.

The reason is that the Holy One, blessed is He, renews the work of creation every day, and the Torah is called the work of creation, for through it all the worlds were created. The Holy One, blessed is He, renews always, and no day is like another. Every day is a new cleaving and a new closeness to the Torah, to what was revealed in it today and was not in yesterday, which has passed. So Israel is called a virgin, as it is written: "the virgin of Israel": every day her youth is renewed, and the union of this day has never been before. And one who serves so is called one who goes from level to level, and every day he unites anew.

This is "do not read inheritance but betrothed": the Torah, which is called an inheritance, must be read as betrothed, as a bride, so that the union is always new, as for a bride on her wedding day. And this is "Moshe would learn and forget": he forgot the pleasure, because constant pleasure is no pleasure, until the Torah was given to him like a bride to a groom. That is, he was given the strength to go every day from level to level, and on every new level to be again like a bride, in a new union, and this is great pleasure, like the joy of a groom over a bride. And understand.

Sefat Emet And He gave Moshe (Moses), when He finished

In the midrash: all forty days he would learn and forget. This is to show that everything follows the end, the seal, and at the end of effort comes salvation. And surely Moshe our teacher, peace be upon him, toiled forty days, did not eat or drink, and became like the ministering angels. This is כְּכַלֹּתוֹ: the exhaustion of the soul (כְּלוֹת הַנֶּפֶשׁ), and he was clothed in the cloud. So it is written "to speak with him": what the mouth cannot speak. And after this He gave him the Torah as a gift.

Takeaway

The teachers hear the word כְּכַלֹּתוֹ (when He finished) three ways: "like his bride" (כַּלָּתוֹ), "finished" (כִּלָּה) and "exhaustion of the soul" (כְּלוֹת הַנֶּפֶשׁ).
The reading "do not read inheritance but betrothed" is brought in the Talmud (Pesachim 49b).