Negative commandment · Lo Ta’aseh #90 of 613
Not to slaughter sacred offerings outside [the Temple]
שלא לשחוט קודשים בחוץ
The verse · Vayikra 17:4
וְאֶל־פֶּתַח אֹהֶל מוֹעֵד לֹא הֱבִיאוֹ לְהַקְרִיב קׇרְבָּן לַה׳ לִפְנֵי מִשְׁכַּן ה׳ דָּם יֵחָשֵׁב לָאִישׁ הַהוּא דָּם שָׁפָךְ וְנִכְרַת הָאִישׁ הַהוּא מִקֶּרֶב עַמּוֹ
“and brings it not to the door of the Tent of Meeting, to offer an offering to the Lord before the tabernacle of the Lord; blood shall be imputed to that man; he has shed blood; and that man shall be cut off from among his people:”
The Rambam’s words
Not to slaughter sacred offerings outside [the Temple], as [Leviticus 17:3-4] states: "A person who slaughters an ox or a sheep without bringing it to the Tent of Testimony. He shall be punished by karet."
שלא לשחוט קודשים בחוץ, שנאמר "איש . . . אשר ישחט שור או כשב" (ויקרא יז,ג) "ואל פתח אוהל מועד, לא הביאו . . . ונכרת" (ויקרא יז,ד).
Why · Sefer HaChinuch #186
Not to slaughter consecrated animals outside of the Temple yard
“It is from the roots of the commandment [that it is] since G-d, blessed be He, fixed a place for Israel to bring their sacrifices there and to prepare their hearts to Him there.”
Who & when
“The prohibition of sacrificing outside is practiced in every place and at all times, as even one who slaughters a beast for the sake of consecrated animals today is liable.”
Where in the Mishneh Torah
Hilchot Sacrificial Procedure הלכות מעשה הקרבנות