The Rambam · Sefer Madda
הלכות יסודי התורה ו׳Foundations of the Torah 6
Chapter 6 of 10 in Foundations of the Torah — 9 halachot
Halacha 1א׳
כָּל הַמְאַבֵּד שֵׁם מִן הַשֵּׁמוֹת הַקְּדוֹשִׁים הַטְּהוֹרִים שֶׁנִּקְרָא בָּהֶם הַקָּדוֹשׁ בָּרוּךְ הוּא לוֹקֶה מִן הַתּוֹרָה. שֶׁהֲרֵי הוּא אוֹמֵר בַּעֲבוֹדַת כּוֹכָבִים (גמרא שבת קכ ב) "וְאִבַּדְתֶּם אֶת שְׁמָם מִן הַמָּקוֹם הַהוּא לֹא תַעֲשׂוּן כֵּן לַה' אֱלֹהֵיכֶם":
Anyone who erases one of the holy, pure Names by which God is called is flogged biblically for it says regarding idolatry "and though shalt destroy their names from that place; thou shalt not do so to the LORD thy god."
Halacha 2ב׳
וְשִׁבְעָה שֵׁמוֹת הֵם. הַשֵּׁם הַנִּכְתָּב יוּ"ד הֵ"א וָא"ו הֵ"א וְהוּא הַשֵּׁם הַמְפֹרָשׁ. אוֹ הַנִּכְתָּב אֲדֹנָי. וְאֵל. אֱלוֹהַּ. וֵאלֹהִים. וֵאלֹהֵי. וְשַׁדַּי. וּצְבָאוֹת. כָּל הַמּוֹחֵק אֲפִלּוּ אוֹת אַחַת מִשִּׁבְעָה אֵלּוּ לוֹקֶה:
There are seven names: the name which is written Yud-Hey-Vav-Hey. And this is the explicit name, or it is written Alef-Daled-Nun-Yud. El, Elo'ah, Elohim, Elohai, Shadai, Tz'vaot. Anyone who erases even one letter from these 7 names is lashed
Halacha 3ג׳
כָּל הַנִּטְפָּל לַשֵּׁם מִלְּפָנָיו מֻתָּר לְמָחֳקוֹ כְּגוֹן לָמֶ"ד מִלַּיהוָֹה וּבֵי"ת מִבֵּאלֹהִים וְכַיּוֹצֵא בָּהֶן אֵינָן כִּקְדֻשַּׁת הַשֵּׁם. וְכָל הַנִּטְפָּל לַשֵּׁם מֵאַחֲרָיו כְּגוֹן ךְ' שֶׁל אֱלֹהֶיךָ וְכֶ"ם שֶׁל אֱלֹהֵיכֶם וְכַיּוֹצֵא בָּהֶן אֵינָם נִמְחָקִים וַהֲרֵי הֵם כִּשְׁאָר אוֹתִיּוֹת שֶׁל שֵׁם מִפְּנֵי שֶׁהַשֵּׁם מְקַדְּשָׁם. וְאַף עַל פִּי שֶׁנִּתְקַדְּשׁוּ וְאָסוּר לְמָחֳקָם הַמּוֹחֵק אֵלּוּ הָאוֹתִיּוֹת הַנִּטְפָּלוֹת אֵינוֹ לוֹקֶה. אֲבָל מַכִּין אוֹתוֹ מַכַּת מַרְדּוּת:
Any prefix to a Name is permitted to erase for example the Lamed of L-donay or the Bet of B-lohim and the like are not like the sanctity of the Name [itself.] Any suffix of a Name like the khaf of le'lohekha or the khaf-mem of elohekhem and the like may not be erased and are just like all the other other letters of the Name because the Name sanctifies them. Even though they are holy and it is forbidden to erase them, [one who does] is not subject to [biblical] lashes but gets lashes for rebelliousness.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: Sefaria Community Translation — CC0