סימן קסד סעיף ט
כֹּהֲנִים וּלְוִיִּם, פְּטוּרִים מִפִּדְיוֹן הַבֵּן. וַאֲפִלּוּ בַת כֹּהֵן אוֹ בַּת לֵוִי שָׁנִּשְׂאָה לְיִשְֹרָאֵל, הַבֵּן פָּטוּר מִפִּדְיוֹן. וְאִם בַּת כֹּהֵן נִבְעֲלָה לַגּוֹי וְנִתְעַבְּרָה מִמֶּנוּ, אוֹ אֲפִלּוּ נִתְעַבְּרָה אַחַר כָּךְ בְּהֶתֵּר, הַבֵּן חַיָב בְּפִדְיוֹן, שֶׁהֲרֵי אִמּוֹ נִתְחַלְּלָה מִן הַכְּהֻנָּה עַל יְדֵי בְעִילַת הַגּוֹי. וְכֵן עַל יְדֵי שְׁאָר בְּעִילַת אִסּוּר, שֶׁהִיא מִתְחַלֶּלֶת.
Kohanim and Levites are exempt from redeeming their firstborn sons. Even if the daughter of a kohein or a Levite is married to an Israelite, the son is exempt from redemption. If the daughter of a kohein had sexual relations with a non-Jew and has become pregnant from him, or even if she had thereafter become pregnant from a legal marriage, the son must be redeemed, for his mother was disqualified from the kehunah (priesthood) by having cohabitation with a non-Jew. (This also applies to any illicit cohabitation through which his mother's priesthood is profaned.)
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)