ט שְׁנֵי כֹּהֲנִים שֶׁנִּתְעָרְבוּ וַלְדוֹתֵיהֶם, אוֹ אֵשֶׁת כֹּהֵן שֶׁלֹּא שָׁהֲתָה אַחַר בַּעְלָהּ ג' חֳדָשִׁים וְנִשֵּׂאת לְכֹהֵן אַחֵר, וְאֵין יָדוּעַ אִם בֶּן ט' לָרִאשׁוֹן אוֹ בֶּן שִׁבְעָה לָאַחֲרוֹן, הֲרֵי זֶה כֹהֵן, וְנוֹתְנִים עַל הַוָּלָד חֻמְרֵי שְׁנֵיהֶם: הוּא אוֹנֵן עֲלֵיהֶם וְהֵם אוֹנְנִים עָלָיו, הוּא אֵינוֹ מִטַּמֵּא לָהֶם וְהֵם אֵינָם מִטַּמְּאִים לוֹ. בַּמֶּה דְּבָרִים אֲמוּרִים, בִּזְמַן שֶׁבָּאִים מִכֹּחַ נִשּׂוּאִין. אֲבָל בִּזְנוּת, מַשְׁתִּיקִין אוֹתוֹ מִדִּין כְּהֻנָּה, הוֹאִיל וְאֵין יָדוּעַ וַדַּאי מִי הוּא אָבִיו. כֵּיצַד, עֲשָׂרָה כֹּהֲנִים שֶׁפֵּרַשׁ אֶחָד מֵהֶם וּבָעַל, אַף עַל פִּי שֶׁהוּא וַדַּאי (בֶּן) כֹּהֵן. וְאִם נִטְמָא לְמֵת אוֹ שֶׁנָשָׂא גְּרוּשָׁה לוֹקֶה, וְאֵינוֹ עוֹבֵד וְאֵינוֹ אוֹכֵל בִּתְרוּמָה. הַגָּה: זָנְתָה עִם כֹּהֵן אֶחָד, וּבְתוֹךְ שְׁלשָׁה נִשֵּׂאת לְכֹהֵן אַחֵר, הַוָּלָד פָּסוּל לִכְהֻנָּה (תולדות אדם וחוה נכ"ג). כֹּהֵן הַבָּא עַל הַפְּנוּיָה וּמוֹדֶה שֶׁהוּא בְּנוֹ, הַבֵּן כֹּהֵן לְכָל דָּבָר וְלֹא חַיְשִׁינָן שֶׁמָּא הִפְקִירָה נַפְשָׁהּ לַאֲחֵרִים (תְּשׁוּבַת הָרֹא"שׁ כְּלָל ל"ב):
9 Two Cohanim whos babies got mixed up or the wife of a Cohen who did not wait after her husband (died) 3 months before marrying another Cohen and we don't know if the baby is a 9 month baby from the first husband or a 7 month baby from the second husband, in any case, he is a Cohen and we impose on him the strictures of both fathers; he would be required to be an Onen for all the possible relatives (from both fathers' relatives when they die) and they would be in Onenus for him and he would not be allowed to be Metamei from either of the family members and they would not be allowed to be metamei for him. In which cases do these apply? where the marriage was proper, but if this was through harlotry (or another forbidden relation, but certainly with a Cohen) we silence him from the category of priesthood as we would do if we don't know for certain who is the father (but we are certain that he is a Cohen and not a Halal). What is this case? for example, there are 10 Cohanim out of which one of them and had relations with her (the widow or pnuya); even though he is certainly a priest, such that if he intentionally metameis himself with the dead or marries a divorcee, he would get whiplashes but he would not perform the holy services at the Temple or eat priestly tithings (since he does not know exactly who is his father). [ Rema: If she was a penuya (a kosher single girl who is not a harlot by the Torah) who had relations with a Cohen and within 3 months married a different Cohen, the offspring is passul from the priesthood. Although, a Cohen who has carnal relations with a penuya and admits that the child is his son, the child is a Cohen for all things (including Trumot and Avoda) and we are not concerned that perhaps she is giving over her nefesh as a harlot.