Pesachim6: 6
שְׁחָטוֹ שֶׁלֹּא לְאוֹכְלָיו וְשֶׁלֹּא לִמְנוּיָיו, לַעֲרֵלִין וְלִטְמֵאִין — חַיָּב; לְאוֹכְלָיו וְשֶׁלֹּא לְאוֹכְלָיו, לִמְנוּיָיו וְשֶׁלֹּא לִמְנוּיָיו, לְמוּלִין וְלַעֲרֵלִין, לִטְהוֹרִים וְלִטְמֵאִים — פָּטוּר.  שְׁחָטוֹ וְנִמְצָא בַעַל מוּם — חַיָּב.  שְׁחָטוֹ וְנִמְצָא טְרֵפָה בַסֵּתֶר — פָּטוּר.  שְׁחָטוֹ וְנוֹדַע שֶׁמָּשְׁכוּ הַבְּעָלִים אֶת יָדָם, אוֹ שֶׁמֵּתוּ, אוֹ שֶׁנִּטְמְאוּ — פָּטוּר, מִפְּנֵי שֶׁשָּׁחַט בִּרְשׁוּת.
[If] one slaughtered it for those who cannot eat of it or for those not registered on it, for uncircumcised or contaminated [people], he is liable. [However, if he slaughtered] for those who can eat of it and those who cannot eat of it, for those registered and for those not registered, for circumcised and uncircumcised, for those who are cleansed and those who are contaminated, he is not liable.  [If] one slaughtered it and it was found to have a blemish, he is liable.  [If] one slaughtered it and it was found to be a tereifah internally, he is not liable.  [If] one slaughtered it and then it became known that the owners had withdrawn from it, or had died, or had become contaminated, he is not liable, because he slaughtered with permission.