Chulin2: 10
הַשּׁוֹחֵט לְשֵׁם עוֹלָה, לְשֵׁם זְבָחִים, לְשֵׁם אָשָׁם תָּלוּי, לְשֵׁם פֶּסַח, לְשֵׁם תּוֹדָה, שְׁחִיטָתוֹ פְסוּלָה, וְרַבִּי שִׁמְעוֹן מַכְשִׁיר. שְׁנַיִם אוֹחֲזִין בְּסַכִּין וְשׁוֹחֲטִין, אֶחָד לְשֵׁם אֶחָד מִכָּל־אֵלּוּ, וְאֶחָד לְשֵׁם דָּבָר כָּשֵׁר, שְׁחִיטָתָן פְּסוּלָה. הַשּׁוֹחֵט לְשֵׁם חַטָּאת, לְשֵׁם אָשָׁם וַדַּאי, לְשֵׁם בְּכוֹר, לְשֵׁם מַעֲשֵׂר, לְשֵׁם תְּמוּרָה, שְׁחִיטָתוֹ כְשֵׁרָה. זֶה הַכְּלָל: כָּל־דָּבָר שֶׁנִּדָּר וְנִדָּב — הַשּׁוֹחֵט לִשְׁמוֹ, אָסוּר; וְשֶׁאֵינוֹ נִדָּר וְנִדָּב — הַשּׁוֹחֵט לִשְׁמוֹ, כָּשֵׁר.
[If] one slaughters [an animal] for the designation of an olah-offering, a shelamim-offering, a guilt-offering in case of doubt, a pesach-offering, [or] a thanksgiving offering, his slaughtering is invalid, but R’ Shimon declares it valid. [If] two hold a knife and slaughter, one for one of these designations and one for a legitimate purpose, their slaughtering is invalid. [If] one slaughters [an animal] for the designation of a sin-offering, a definite guilt-offering, a firstborn, an animal tithe, [or] a substitution, his slaughtering is valid. This is the general rule: Whatever can be brought as a vow or as a donative offering — [if] one slaughters for its designation, it is prohibited; but whatever cannot be brought for a vow or for a donative offering — [if] one slaughters for its designation, it is valid.