Yevamos7: 6
כֹּהֵן גָּדוֹל פְּעָמִים שֶׁהוּא פֹסֵל. כֵּיצַד? בַּת כֹּהֵן לְיִשְׂרָאֵל, וְיָלְדָה הֵימֶנּוּ בַת, וְהָלְכָה הַבַּת וְנִסֵּת לְכֹהֵן, וְיָלְדָה הֵימֶנּוּ בֵן — הֲרֵי זֶה רָאוּי לִהְיוֹת כֹּהֵן גָּדוֹל עֹמֵד וּמְשַׁמֵּשׁ עַל גַּבֵּי הַמִּזְבֵּחַ. מַאֲכִיל אֶת אִמּוֹ וּפוֹסֵל אֶת אֵם אִמּוֹ, וְזֹאת אוֹמֶרֶת: ,,לֹא כִבְנִי כֹּהֵן גָּדוֹל, שֶׁהוּא פּוֹסְלֵנִי מִן הַתְּרוּמָה.”
The Kohen Gadol sometimes disqualifies. How so? [If] a Kohen's daughter [was married] to a Yisrael and bore him a daughter; and the daughter went and married a Kohen and bore him a son —- he is qualified to be a Kohen Gadol [and] stand and serve at the altar. He entitles his mother to eat [terumah], but disqualifies his mother's mother. [To this] she says: [“Let others] not [be] like my son the Kohen Gadol, who disqualifies me from terumah.”