Menachos7: 3
הַשּׁוֹחֵט אֶת הַתּוֹדָה בִּפְנִים וְלַחְמָהּ חוּץ לַחוֹמָה, לֹא קָדַשׁ הַלֶּחֶם. שְׁחָטָהּ עַד שֶׁלֹּא קָרְמוּ בַתַּנּוּר, וַאֲפִילוּ קָרְמוּ כֻלָּן חוּץ מֵאֶחָד מֵהֶן, לֹא קָדַשׁ הַלֶּחֶם. שְׁחָטָהּ חוּץ לִזְמַנָּהּ וְחוּץ לִמְקוֹמָהּ, קָדַשׁ הַלֶּחֶם. שְׁחָטָהּ וְנִמְצֵאת טְרֵפָה, לֹא קָדַשׁ הַלֶּחֶם. שְׁחָטָהּ וְנִמְצֵאת בַּעֲלַת מוּם — רַבִּי אֱלִיעֶזֶר אוֹמֵר: קָדַשׁ; וַחֲכָמִים אוֹמְרִים: לֹא קָדַשׁ. שְׁחָטָהּ שֶׁלֹּא לִשְׁמָהּ — וְכֵן אֵיל הַמִּלּוּאִים, וְכֵן שְׁנֵי כִבְשֵׂי עֲצֶרֶת שֶׁשְּׁחָטָן שֶׁלֹּא לִשְׁמָן — לֹא קָדַשׁ הַלֶּחֶם.
[If] one slaughtered the todah-offering inside while its loaves were outside the wall, the bread is not sanctified. [If] he slaughtered it before they became crusted in the oven, or even if all were crusted except for one, the bread is not sanctified. [If] he slaughtered it [for] beyond its time or [for] outside its place, the bread is sanctified. [If] he slaughtered it and it was found to be a tereifah, the bread is not sanctified. [If] he slaughtered it and it was found to be blemished — R’ Eliezer says: It is sanctified; but the Sages say: It is not sanctified. [If] he slaughtered it for a designation other than its own — and so too the initiation ram, and so too the two lambs of Shavuos which one slaughtered for a designation other than their own — the bread is not sanctified.