Nazir6: 10
גִּלַּח עַל הַזֶּבַח וְנִמְצָא פָסוּל — תִּגְלַחְתּוֹ פְסוּלָה, וּזְבָחָיו לֹא עָלוּ לוֹ.  גִּלַּח עַל הַחַטָּאת שֶׁלֹּא לִשְׁמָהּ, וְאַחַר כָּךְ הֵבִיא קָרְבְּנוֹתָיו לִשְׁמָן — תִּגְלַחְתּוֹ פְסוּלָה, וּזְבָחָיו לֹא עָלוּ לוֹ. גִּלַּח עַל הָעוֹלָה אוֹ עַל הַשְּׁלָמִים שֶׁלֹּא לִשְׁמָן, וְאַחַר כָּךְ הֵבִיא קָרְבְּנוֹתָיו לִשְׁמָן — תִּגְלַחְתּוֹ פְסוּלָה, וּזְבָחָיו לֹא עָלוּ לוֹ. רַבִּי שִׁמְעוֹן אוֹמֵר: אוֹתוֹ הַזֶּבַח לֹא עָלָה לוֹ, אֲבָל שְׁאָר זְבָחִים עָלוּ לוֹ. וְאִם גִּלַּח עַל שְׁלָשְׁתָּן וְנִמְצָא אֶחָד מֵהֶן כָּשֵׁר — תִּגְלַחְתּוֹ כְּשֵׁרָה, וְיָבִיא שְׁאָר הַזְּבָחִים.
[If] he shaved [his head] following the sacrifice and it was found [to be] invalid —- his shaving is invalid and his sacrifices do not count for him.  [If] he shaved after a sin-offering [which was slaughtered] not for its designated purpose, and then he brought his offerings for their designated purpose —- his shaving is invalid and his sacrifices do not count for him. [If] he shaved after the burnt-offering or after the peace-offering [which were slaughtered] not for their designated purpose, and then he brought his offerings for their designated purpose —- his shaving is invalid and his sacrifices do not count for him. R’ Shimon says: That sacrifice does not count for him, but the other sacrifices do count for him. If he shaved after [all] three and one of them was found to be valid —- his shaving is valid and he brings the other sacrifices.
Nazir6: 11
מִי שֶׁנִּזְרַק עָלָיו אֶחָד מִן הַדָּמִים וְנִטְמָא, רַבִּי אֱלִיעֶזֶר אוֹמֵר: סוֹתֵר אֶת הַכֹּל. וַחֲכָמִים אוֹמְרִים: יָבִיא שְׁאָר קָרְבְּנוֹתָיו וְיִטְהָר. אָמְרוּ לוֹ: מַעֲשֶׂה בְמִרְיָם הַתַּרְמוֹדִית שֶׁנִּזְרַק עָלֶיהָ אֶחָד מִן הַדָּמִים, וּבָאוּ וְאָמְרוּ לָהּ עַל בִּתָּהּ שֶׁהָיְתָה מְסֻכֶּנֶת וְהָלְכָה וּמָצְאָה שֶׁמֵּתָה, וְאָמְרוּ חֲכָמִים: תָּבִיא שְׁאָר קָרְבְּנוֹתֶיהָ וְתִטְהָר.
Someone for whom one of the bloods had been thrown, and he then became tamei —- R’ Eliezer says: He forfeits all. But the Sages say: He should bring the rest of his offerings and become tahor. They said to him: It happened with Miriam the Tarmodite that one of the bloods had been thrown for her, and they came and told her about her daughter who was in danger. She went and found that she had died, and the Sages said: She should bring the rest of her offerings and become tahor.