The Rambam · Sefer Avodah
הלכות איסורי המזבח א׳Things Forbidden on the Altar 1
Chapter 1 of 7 in Things Forbidden on the Altar — 12 halachot
Halacha 1א׳
מִצְוַת עֲשֵׂה לִהְיוֹת כָּל הַקָּרְבָּנוֹת תְּמִימִין וּמֻבְחָרִין שֶׁנֶּאֱמַר (ויקרא כב-כא) "תָּמִים יִהְיֶה לְרָצוֹן" זוֹ מִצְוַת עֲשֵׂה:
It is a positive commandment that all the offerings be unblemished and choice, as it is said (Leviticus 22:21), "It shall be perfect to be accepted." This is a positive commandment.
Halacha 2ב׳
וְכָל הַמַּקְדִּישׁ בְּהֵמָה שֶׁיֵּשׁ בָּהּ מוּם לְגַבֵּי הַמִּזְבֵּחַ עוֹבֵר בְּלֹא תַּעֲשֶׂה וְלוֹקֶה עַל הֶקְדֵּשׁוֹ שֶׁנֶּאֱמַר (ויקרא כב-כ) "כּל אֲשֶׁר בּוֹ מוּם לֹא תַקְרִיבוּ" מִפִּי הַשְּׁמוּעָה לָמְדוּ שֶׁזּוֹ אַזְהָרָה לְמַקְדִּישׁ בַּעֲלֵי מוּמִין אֲפִלּוּ הִקְדִּישׁוֹ לִדְמֵי [נְסָכִים] לוֹקֶה שֶׁבִּזְיוֹן קָדָשִׁים הוּא:
And anyone who consecrates an animal that has a blemish for the altar transgresses a negative commandment and is flogged for consecrating it, as it is said (Leviticus 22:20), "Whatever has a blemish, that you shall not bring." By tradition they learned that this is a warning to one who consecrates blemished animals. Even if he consecrated it for the value of the libations, he is flogged, for it is a contempt of holy things.
Halacha 3ג׳
הַמִּתְכַּוֵּן לוֹמַר שְׁלָמִים וְאָמַר עוֹלָה עוֹלָה וְאָמַר שְׁלָמִים לֹא אָמַר כְּלוּם עַד שֶׁיִּהְיוּ פִּיו וְלִבּוֹ שָׁוִים. לְפִיכָךְ הַמִּתְכַּוֵּן לוֹמַר עַל בַּעַל מוּם עוֹלָה וְהִקְדִּישׁוֹ שְׁלָמִים אוֹ שְׁלָמִים וְאָמַר עוֹלָה אַף עַל פִּי שֶׁנִּתְכַּוֵּן לְאִסּוּר אֵינוֹ לוֹקֶה. מִי שֶׁדִּמָּה שֶׁמֻּתָּר לְהַקְדִּישׁ בַּעַל מוּם לַמִּזְבֵּחַ וְהִקְדִּישׁ הֲרֵי זֶה קָדוֹשׁ וְאֵינוֹ לוֹקֶה:
One who meant to say "a peace-offering" and said "a burnt-offering," or "a burnt-offering" and said "a peace-offering," has said nothing, until his mouth and his heart are at one. Therefore one who meant to say "a burnt-offering" of a blemished animal and consecrated it as a peace-offering, or "a peace-offering" and said "a burnt-offering," even though he intended a forbidden thing, is not flogged. One who imagined that it is permitted to consecrate a blemished animal for the altar and consecrated it, it is holy, and he is not flogged.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation