"And the writing was the writing of God" (Exodus 32:16). Rav Chisda said: the closed mem and the final samekh that were in the tablets stood there by a miracle [their centers were cut clear through the stone, yet the inner portion did not fall]. And Rav said: the writing on the tablets was read from within and read from without, so that "navuv" [hollow] read backward is "bovan," "bahar" [in the mountain] read backward is "rahav," "saru" [they turned aside] read backward is "vares."
The Floating Letters of the Tablets, Read From Either Side
Yalkut Shimoni on Torah 392:10
וְהַמִּכְתָּב מִכְתַּב אֱלֹהִים הוּא. אֲמַר רַב חִסְדָּא. מֵ"ם וְסָמֶ"ךְ שֶׁבַּלּוּחוֹת, בְּנֵס הָיוּ עוֹמְדִין. וֲאֲמַר רַב. כְּתָב שֶׁבַּלּוּחוֹת נִקְרָא מִבִּפְנִים נִקְרָא מִבַּחוּץ, נְבוּב בובן, בָּהָר רַהַב, סָרוּ ורס.