יבמות ד:יב · Yevamot 4:12

הַמַּחֲזִיר גְּרוּשָׁתוֹ, וְהַנּוֹשֵׂא חֲלוּצָתוֹ, וְהַנּוֹשֵׂא קְרוֹבַת חֲלוּצָתוֹ, יוֹצִיא, וְהַוָּלָד מַמְזֵר, דִּבְרֵי רַבִּי עֲקִיבָא. וַחֲכָמִים אוֹמְרִים, אֵין הַוָּלָד מַמְזֵר. וּמוֹדִים בְּנוֹשֵׂא קְרוֹבַת גְּרוּשָׁתוֹ, שֶׁהַוָּלָד מַמְזֵר:
With regard to one who remarries his divorcée after she had been married to another man from whom she was then widowed or divorced, or one who marries the woman with whom he performed ḥalitza [ ḥalutza ], or one who marries a relative of his ḥalutza , since all such marriages are forbidden he must divorce her, and the offspring born from such unions is a mamzer ; this is the statement of Rabbi Akiva. He holds that even the offspring from relations forbidden by a prohibition punishable by lashes is a mamzer . The Rabbis say: The offspring in those cases is not a mamzer , but they concede with regard to one who marries a relative of his divorcée, a union forbidden by a prohibition entailing karet , that the offspring is a mamzer . They hold that only the offspring from relations forbidden by a prohibition entailing karet is a mamzer .

Word-by-word Breakdown (מילים ושרשים)

הַמַּחֲזִיר → one who remarries [ח - ז - ר]גְּרוּשָׁתוֹ → his divorcée [ג - ר - שׁ]וְהַנּוֹשֵׂא → and one who marries [נ - שׂ - א]חֲלוּצָתוֹ → his halutza [ח - ל - צ]וְהַנּוֹשֵׂא → and one who marries [נ - שׂ - א]קְרוֹבַת → a relative of [ק - ר - ב]חֲלוּצָתוֹ → his halutza [ח - ל - צ]יוֹצִיא → must divorce [י - צ - א]וְהַוָּלָד → and the offspring [י - ל - ד]מַמְזֵר → is a mamzer [מ - ז - ר]דִּבְרֵי → these are the words of [ד - ב - ר]רַבִּי → Rabbi [ר - ב - ה]עֲקִיבָא → Akiva וַחֲכָמִים → And the Rabbis [ח - כ - ם]אוֹמְרִים → say [א - מ - ר]אֵין → not [א - י - ן]הַוָּלָד → the offspring [י - ל - ד]מַמְזֵר → a mamzer [מ - ז - ר]וּמוֹדִים → However, they concede [י - ד - ה]בְּנוֹשֵׂא → regarding one who marries [נ - שׂ - א]קְרוֹבַת → a relative of [ק - ר - ב]גְּרוּשָׁתוֹ → his divorcée [ג - ר - שׁ]שֶׁהַוָּלָד → that the offspring [י - ל - ד]מַמְזֵר → is a mamzer [מ - ז - ר]