Zevachim1: 2
יוֹסֵי בֶּן חוֹנִי אוֹמֵר: הַנִּשְׁחָטִים לְשֵׁם פֶּסַח וּלְשֵׁם חַטָּאת פְּסוּלִים. שִׁמְעוֹן אֲחִי עֲזַרְיָה אוֹמֵר: שְׁחָטָן לְשֵׁם גָּבוֹהַּ מֵהֶם, כְּשֵׁרִין; לְשֵׁם נָמוּךְ מֵהֶם, פְּסוּלִין. כֵּיצַד? קָדְשֵׁי קָדָשִׁים שֶׁשְּׁחָטָן לְשֵׁם קָדָשִׁים קַלִּים פְּסוּלִין; קָדָשִׁים קַלִּים שֶׁשְּׁחָטָן לְשֵׁם קָדְשֵׁי קָדָשִׁים כְּשֵׁרִין. הַבְּכוֹר וְהַמַּעֲשֵׂר שֶׁשְּׁחָטָן לְשֵׁם שְׁלָמִים כְּשֵׁרִין, וּשְׁלָמִים שֶׁשְּׁחָטָן לְשֵׁם בְּכוֹר, לְשֵׁם מַעֲשֵׂר, פְּסוּלִין.
Yose ben Choni says: [Sacrifices] slaughtered for the pesach designation or the chatas designation are invalid. Shimon the brother of Azaryah says: [If] they were slaughtered for a designation higher than their own, they are valid; for a designation lower than their own, they are invalid. How so? Most holy offerings which he slaughtered for an offering of lesser holiness designation are invalid; offerings of lesser holiness which he slaughtered for a most holy offering designation are valid. The bechor- and the maaser-offerings which were slaughtered for the shelamim designation are valid, and shelamim-offerings which he slaughtered for the bechor [or] the maaser designation are invalid.