The Rambam · Sefer Nashim
הלכות גירושין ג׳Divorce 3
Chapter 3 of 13 in Divorce — 19 halachot
Halacha 1א׳
כָּל גֵּט שֶׁלֹּא נִכְתַּב לְשֵׁם הָאִישׁ הַמְגָרֵשׁ וּלְשֵׁם הָאִשָּׁה הַמִּתְגָּרֶשֶׁת אֵינוֹ גֵּט. כֵּיצַד. סוֹפֵר שֶׁכָּתַב גֵּט לְלַמֵּד אוֹ לְהִתְלַמֵּד וּבָא הַבַּעַל וּמָצָא שֵׁם שֶׁנִּכְתַּב בְּגֵט זֶה כִּשְׁמוֹ וְשֵׁם הָאִשָּׁה כְּשֵׁם אִשְׁתּוֹ וְשֵׁם הָעִיר כְּשֵׁם עִירוֹ וּנְטָלוֹ וְגֵרֵשׁ בּוֹ אֵינוֹ גֵּט:
Any get, any bill of divorce, that was not written for the sake of the man who divorces and for the sake of the woman who is divorced is not a get. How so? A scribe who wrote a get to teach or to practise, and the husband came and found that the name written in this get was as his name, and the woman's name as his wife's name, and the name of the city as the name of his city, and he took it and divorced with it — it is not a get.
Halacha 2ב׳
יֶתֶר עַל זֶה כָּתַב לְגָרֵשׁ אֵת אִשְׁתּוֹ וְנִמְלַךְ וּמָצָא בֶּן עִירוֹ וְאָמַר לוֹ שְׁמִי כְּשִׁמְךָ וְשֵׁם אִשְׁתִּי כְּשֵׁם אִשְׁתְּךָ וּנְטָלוֹ מִמֶּנּוּ וְגֵרֵשׁ בּוֹ אַף עַל פִּי שֶׁנִּכְתַּב לְשֵׁם גֵּרוּשִׁין אֵינוֹ גֵּט:
More than this: if he wrote it to divorce his own wife and changed his mind, and his fellow townsman found him and said to him, "My name is as your name and my wife's name as your wife's name," and took it from him and divorced with it, even though it was written for the purpose of divorce, it is not a get.
Halacha 3ג׳
יֶתֶר עַל זֶה מִי שֶׁיֵּשׁ לוֹ שְׁתֵּי נָשִׁים שֶׁשְּׁמוֹתֵיהֶן שָׁווֹת וְכָתַב לְגָרֵשׁ אֶת הַגְּדוֹלָה וְנִמְלַךְ וְגֵרֵשׁ בּוֹ אֶת הַקְּטַנָּה אֵינוֹ גֵּט. אַף עַל פִּי שֶׁנִּכְתַּב לְשֵׁם הָאִישׁ הַמְגָרֵשׁ לֹא נִכְתַּב לְשֵׁם זוֹ שֶׁנִּתְגָּרְשָׁה בּוֹ:
More than this: one who has two wives whose names are the same, and he wrote it to divorce the elder and changed his mind and divorced the younger with it — it is not a get; even though it was written for the sake of the man who divorces, it was not written for the sake of this one who was divorced with it.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation