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 · Pshat

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.

Pshat פְּשָׁט

The Torah as a Gift

The forty days on the mountain are coming to an end. The word כְּכַלֹּתוֹ (when He finished) can also be read "like his bride".

Rashi: כְּכַלֹּתוֹ is written without the letter vav (ו), like "his bride" (כַּלָּתוֹ): the Torah was given to Moshe (Moses) as a gift, like a bride to a groom, for it cannot all be learned in forty days. As a bride wears twenty-four ornaments, so a scholar must know the twenty-four books. "To speak with him": God and Moshe repeated the law together. Sforno: the first tablets were to make the whole people kohanim, but Israel fell from its level.

How Rashi and Sforno explain it

Rashi When He finished (כְּכַלֹּתוֹ)

כְּכַלֹּתוֹ is written without the letter vav (ו), like "his bride": the Torah was given to him as a gift, like a bride to a groom, for he could not learn all of it in so short a time. Another explanation: as a bride adorns herself with twenty-four ornaments, which are named in the book of Yeshayahu (Isaiah) (Yeshayahu / Isaiah 3:18–24), so a scholar must know the twenty-four books well.

Rashi To speak with him

This teaches that Moshe (Moses) would hear from the mouth of the Power, and then the two of them would repeat the law together.

Sforno And He gave Moshe, when He finished

Having told what good was reached at the end of each time that Moshe (Moses) stayed on the mountain forty days, the Torah explains why the goal was not reached that God, blessed is He, set at the giving of the Torah, when He said: "And you shall be to Me a kingdom of kohanim and a holy nation" (Shemot / Exodus 19:6), and said: "An altar of earth you shall make for Me" and "in every place I will come to you" (Shemot / Exodus 20:21). Instead a Mishkan had to be made.

And the Torah tells that this happened because of the bad choice of Israel. For at the end of the first forty days He gave the tablets, the work of God, to sanctify them all and make them kohanim and a holy nation, according to all His good word. And they rebelled, corrupted their way and fell from their level, as the Torah testifies: "And the children of Israel stripped themselves of their ornaments from Mount Horeb" (Shemot / Exodus 33:6).

Takeaway

The twenty-four books are the whole Tanakh: five books of the Torah, eight books of the Prophets and eleven books of the Writings.
Yeshayahu (Isaiah) lists the ornaments of the daughters of Zion: bracelets, earrings, rings, veils and much more (Yeshayahu / Isaiah 3:18–24).