Devarim10:2

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

And I will write on the tablets the words that were on the first tablets which you broke, and you shall put them in the ark."

Devarim 10:2

וְאֶכְתֹּב עַל־הַלֻּחֹת אֶת־הַדְּבָרִים

Devarim / Deuteronomy 10:2 · Sod

Devarim 10:2

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

And I will write on the tablets the words that were on the first tablets which you broke, and you shall put them in the ark."

Sod סוֹד

A body without a soul

A house that people have left soon falls into ruin. What happened to the tablets when the life went out of them?

Shem MiShmuel: the letters on the tablets were like a soul in a body, and the tablets carried themselves. When the letters flew away, the tablets became like a body without a soul. The forces of impurity are drawn to such a body, and Moshe (Moses) feared they would cling to the tablets. So he broke them: a broken vessel becomes pure, and the broken tablets could no longer take on impurity.

How Shem MiShmuel explain it

Shem MiShmuel Which you broke

Many explanations are given of why the tablets were broken. One more may be added, following the words of the Alshich: the letters on the tablets were like a soul in a body. The tablets were like a living being that carries itself, and did not weigh on Moshe's hands. But when the letters flew from them, as the midrash tells, they became like a body without a soul, and Moshe our teacher felt his hands grow heavy.

And we will say: since you compare them to a living person, compare them in every respect. A person from whom the soul has gone out becomes impure. The holy Zohar explains why: the body was a vessel and a sheath for the soul, and when it is emptied, the forces of impurity want to cling to it. So too the tablets: when the letters flew away and the life went out of them, Moshe our teacher feared that, Heaven forbid, the outer forces would cling to them, and so he broke them. For even vessels that have already become impure are purified when they break. All the more does breaking save from impurity what has not yet become impure.

Takeaway

The midrash tells: when Moshe saw the calf, the letters flew from the tablets, and then he broke them (Midrash Tanchuma, Eikev 11).
An earthen vessel that has become impure the Torah commands to break (Vayikra / Leviticus 11:33). The comparison of the Shem MiShmuel rests on this law.