Reference for Zevachim 13:1
הַשּׁוֹחֵט וְהַמַּעֲלֶה בַחוּץ, חַיָּב עַל הַשְּׁחִיטָה וְחַיָּב עַל הָעֲלִיָּה. רַבִּי יוֹסֵי הַגְּלִילִי אוֹמֵר, שָׁחַט בִּפְנִים וְהֶעֱלָה בַחוּץ, חַיָּב. שָׁחַט בַּחוּץ וְהֶעֱלָה בַחוּץ, פָּטוּר, שֶׁלֹּא הֶעֱלָה בַחוּץ אֶלָּא דָבָר פָּסוּל. אָמְרוּ לוֹ, אַף הַשּׁוֹחֵט בִּפְנִים וּמַעֲלֶה בַחוּץ, כֵּיוָן שֶׁהוֹצִיאוֹ, פְּסָלוֹ:
One who slaughters and offers up [a sacrifice] outside [the Temple courtyard] is liable for the slaughtering and is liable for the offering up; Rabbi Yose HaGlili says: [If] he slaughtered it inside [the Temple courtyard] but offered it up outside [the Temple courtyard] he is liable; but [if] he slaughtered it outside and offered it up outside, he is exempt because he merely offered something that was invalid. They said to him: Even if he slaughtered it inside and offered it up outside, once he takes it out, he has invalidated it.