"And he shall offer of the sacrifice" (Leviticus 3:3-4), even though he slaughtered them not for their own sake, the peace-offerings; even though he did not lay hands upon them. "An offering made by fire to the LORD": for the sake of fire-offerings, for the sake of the One who spoke and the world came into being. From here they said: for the sake of six things the sacrifice is offered. For the sake of the sacrifice, for the sake of the one offering, for the sake of the Name, for the sake of the fire-offering, for the sake of the aroma, for the sake of the pleasing savor; and the sin-offering and the guilt-offering for the sake of the sin-offering. Rabbi Yose said: one who had in his heart none of all these, it is valid, for it is a stipulation of the court, since the thought follows only after the one performing the service.
The Six Holy Intentions in the Slaughter of an Offering
Yalkut Shimoni on Torah 460:3
(ויקרא ג ג-ד) וְהִקְרִיב מִזֶּבַח, אַף עַל פִּי שֶׁשְּׁחָטָן שֶׁלֹּא לִשְׁמָן הַשְּׁלָמִים, אַף עַל פִּי שֶׁלֹּא סָמַךְ עֲלֵיהֶן אִשֶּׁה, לְשֵׁם אִשִּׁים לַה', לְשֵׁם מִי שֶׁאָמַר וְהָיָה הָעוֹלָם מִכָּאן אָמְרוּ לְשֵׁם שִׁשָּׁה דְּבָרִים הַזֶּבַח נִזְבָּח, לְשֵׁם זֶבַח, לְשֵׁם זוֹבֵחַ, לְשֵׁם שֵׁם, לְשֵׁם אִשֶּׁה, לְשֵׁם רֵיחַ, לְשֵׁם נִיחוֹחַ, חַטָּאת וְאָשָׁם לְשֵׁם חַטָּאת, אָמַר רַבִּי יוֹסִי, מִי שֶׁלֹּא הָיָה בְּלִבּוֹ לְשֵׁם אֶחָד מִכָּל אֵלּוּ כָּשֵׁר, שֶׁהוּא תְּנַאי בֵּית דִּין, שֶׁאֵין מַחֲשָׁבָה הוֹלֶכֶת אֶלָּא אַחַר הָעוֹבֵד.