חולין ב:ז · Chullin 2:7

הַשּׁוֹחֵט לְנָכְרִי, שְׁחִיטָתוֹ כְשֵׁרָה. וְרַבִּי אֱלִיעֶזֶר פּוֹסֵל. אָמַר רַבִּי אֱלִיעֶזֶר, אֲפִלּוּ שְׁחָטָהּ שֶׁיֹּאכַל הַנָּכְרִי מֵחֲצַר כָּבֵד שֶׁלָּהּ, פְּסוּלָה, שֶׁסְּתָם מַחֲשֶׁבֶת נָכְרִי לַעֲבוֹדָה זָרָה. אָמַר רַבִּי יוֹסֵי, קַל וָחֹמֶר הַדְּבָרִים, וּמַה בִּמְקוֹם שֶׁהַמַּחֲשָׁבָה פוֹסֶלֶת, בְּמֻקְדָּשִׁין, אֵין הַכֹּל הוֹלֵךְ אֶלָּא אַחַר הָעוֹבֵד, מְקוֹם שֶׁאֵין מַחֲשָׁבָה פוֹסֶלֶת, בְּחֻלִּין, אֵינוֹ דִין שֶׁלֹּא יְהֵא הַכֹּל הוֹלֵךְ אֶלָּא אַחַר הַשּׁוֹחֵט:
In the case of a Jew who slaughters the animal of a gentile for a gentile, his slaughter is valid, and Rabbi Eliezer deems it not valid. Rabbi Eliezer says: Even if the Jew slaughtered the animal with the intent to feed the gentile from its diaphragm [ meḥatzar kaved ], its slaughter is not valid, as the unspecified intent of a gentile is to slaughter the animal for idol worship, and it is prohibited to derive benefit from it. Rabbi Yosei says: The matter of the intent of the gentile is irrelevant in this case, as can be derived by means of an a fortiori inference. If in a place where intent while slaughtering the animal invalidates the slaughter, i.e., in sacrificial animals, such as when slaughtering an offering with the intent to sacrifice it beyond its designated time, everything follows only the intent of the priest performing the service and not the intent of the owner, then in a place where intent does not invalidate the slaughter, i.e., in non-sacred animals, is it not right that everything should follow only the intent of the one who slaughters the animal?

Word-by-word Breakdown (מילים ושרשים)

הַשּׁוֹחֵט → who slaughters [ש - ח - ט]לְנָכְרִי → for a gentile [נ - כ - ר]שְׁחִיטָתוֹ → his slaughter [ש - ח - ט]כְשֵׁרָה → is valid [כ - ש - ר]וְרַבִּי → and Rabbi [ר - ב - ה]אֱלִיעֶזֶר → Eliezer פּוֹסֵל → deems invalid [פ - ס - ל]אָמַר → Said [א - מ - ר]רַבִּי → Rabbi [ר - ב - ה]אֱלִיעֶזֶר → Eliezer אֲפִלּוּ → Even שְׁחָטָהּ → if he slaughtered it [ש - ח - ט]שֶׁיֹּאכַל → that [he] will eat [א - כ - ל]הַנָּכְרִי → the gentile [נ - כ - ר]מֵחֲצַר → from the diaphragm [ח - צ - ר]כָּבֵד → of the liver [כ - ב - ד]שֶׁלָּהּ → of it פְּסוּלָה → it is invalid [פ - ס - ל]שֶׁסְּתָם → because the unspecified [ס - ת - ם]מַחֲשֶׁבֶת → intent [ח - ש - ב]נָכְרִי → of a gentile [נ - כ - ר]לַעֲבוֹדָה → for idol [ע - ב - ד]זָרָה → worship [ז - ר - ה]אָמַר → Said [א - מ - ר]רַבִּי → Rabbi [ר - ב - ה]יוֹסֵי → Yosei קַל → an a fortiori [ק - ל - ל]וָחֹמֶר → inference [ח - מ - ר]הַדְּבָרִים → the matter [ד - ב - ר]וּמַה → And what בִּמְקוֹם → in a place [מ - ק - ם]שֶׁהַמַּחֲשָׁבָה → where the intent [ח - ש - ב]פוֹסֶלֶת → invalidates [פ - ס - ל]בְּמֻקְדָּשִׁין → in sacrificial offerings [ק - ד - ש]אֵין → is not [א - י - ן]