Nazir6: 7
תִּגְלַחַת הַטָּהֳרָה כֵּיצַד? הָיָה מֵבִיא שָׁלשׁ בְּהֵמוֹת, חַטָּאת עוֹלָה וּשְׁלָמִים, וְשׁוֹחֵט אֶת הַשְּׁלָמִים וּמְגַלֵּחַ עֲלֵיהֶם, דִּבְרֵי רַבִּי יְהוּדָה. רַבִּי אֶלְעָזָר אוֹמֵר: לֹא הָיָה מְגַלֵּחַ אֶלָּא עַל הַחַטָּאת, שֶׁהַחַטָּאת קוֹדֶמֶת בְּכָל מָקוֹם. וְאִם גִלַּח עַל אַחַת מִשְּׁלָשְׁתָּן — יָצָא.
What is the procedure for head-shaving in taharah? He would bring three animals —- a sin-offering, a burnt-offering, and a peace-offering —- slaughter the peace-offering and shave upon it; [these are] the words of R’ Yehudah. R’ Elazar says: He did not shave [his head] except on [the slaughter of] the sin-offering, because the sin-offering takes precedence on every occasion. However, if he shaved [his head] on any of the three, he has discharged his obligation.