מלאכת מחשבת אסרה תורה ומלאכת מחשבת לא כתיבא: חגיגות: מיכתב כתיבן לא צריכא לכדאמר ליה רב פפא לאביי ממאי דהאי וחגותם אותו חג לה' זביחה דלמא חוגו חגא קאמר רחמנא אלא מעתה דכתיב (שמות ה, א) ויחוגו לי במדבר הכי נמי דחוגו חגא הוא וכי תימא הכי נמי והכתיב (שמות י, כה) ויאמר משה גם אתה תתן בידינו זבחים ועולות דלמא הכי קאמר רחמנא אכלו ושתו וחוגו חגא קמאי לא סלקא דעתך דכתיב (שמות כג, יח) ולא ילין חלב חגי עד בקר ואי סלקא דעתך דחוגא הוא תרבא לחגא אית ליה ודלמא הכי קאמר רחמנא חלב הבא בזמן חג לא ילין אלא מעתה הבא בזמן חג הוא דלא ילין הא דכל השנה כולה ילין (ויקרא ו, ב) כל הלילה עד הבקר כתיב דלמא אי מההוא הוה אמינא ההוא לעשה כתב רחמנא האי ללאו ללאו כתב קרא אחרינא (דברים טז, ד) ולא ילין מן הבשר אשר תזבח בערב ביום הראשון לבקר ודלמא לעבור עליו בשני לאוין ועשה אלא אתיא מדבר מדבר כתיב הכא ויחוגו לי במדבר וכתיב התם (עמוס ה, כה) הזבחים ומנחה הגשתם לי במדבר מה להלן זבחים אף כאן זבחים ומאי כהררין התלויין בשערה דברי תורה מדברי קבלה לא ילפינן:
The Gemara answers: The Torah prohibited only planned, creative labor on Shabbat. An act of labor that is not intended, or whose result is unintended, or whose consequence is destructive, is not included in this category. Therefore, one who performs labor in this manner is exempt. And limitation of the prohibition against creative labor is not written anywhere in the Torah with regard to the laws of Shabbat. Admittedly, this principle is written in connection with the Tabernacle, and there is an established exegetical link between the building of the Tabernacle and Shabbat. Nevertheless, as this fundamental principle concerning the halakhot of Shabbat does not appear explicitly, it is compared to mountains suspended by a hair. § The mishna taught that the halakhot of Festival peace-offerings are like mountains suspended by a hair. The Gemara asks: But they are written in the Torah. The Gemara answers: No, it is necessary to say this in accordance with that which Rav Pappa said to Abaye: From where is it derived that this verse: “And you shall celebrate it as a Festival [veḥagotem] to the Lord” (Leviticus 23:41), is referring to an animal offering? Perhaps the Merciful One is simply saying: Celebrate a Festival. Abaye responded: However, if that is so, consider that it is written: “Let My people go, that they may hold a feast [veyaḥogu] to Me in the wilderness” (Exodus 5:1). So too, the meaning of this verse is that they will merely celebrate a Festival, and not bring an offering. And if you would say that is indeed so, that this means that they should celebrate a Festival, but isn’t it written: “And Moses said: You must also give into our hand sacrifices and burnt-offerings, that we may sacrifice to the Lord our God” (Exodus 10:25)? This shows that the command is referring to offerings. The Gemara raises a difficulty. But perhaps this is what the Merciful One said: Slaughter animals so that you can eat, drink, and celebrate a Festival before Me, but no offerings are necessary. The Gemara answers: This cannot enter your mind, as it is written: “The fat of My Festival feast [ḥagi] shall not remain all night until the morning” (Exodus 23:18). And if it enters your mind to say that it is referring to a regular Festival feast and not an offering, does a Festival feast have forbidden fats? The Gemara asks: But perhaps this is what the Merciful One states in the Torah: The fats of gift offerings that are brought during a Festival may not remain all night. If so, the phrase “My Festival feast” is not referring to a type of offering at all, but to a particular time. The Gemara answers: However, if that is so, this verse indicates that it is only those fats that are brought during a Festival that may not remain overnight. It may be inferred from here that fats which are brought throughout the year may remain all night. But it is written about burnt-offerings: “On its firewood upon the altar all night into the morning” (Leviticus 6:2). This shows that burnt-offerings must burn upon the altar all night. The Gemara further asks: Perhaps if this halakha was derived from that verse, I would say that verse serves as the source of a positive mitzva. Therefore, the Merciful One writes this verse: “Shall not remain all night,” as a prohibition as well. The Gemara responds. With regard to the prohibition against leaving over an offering on a Festival, another verse was written: “Neither shall any of the flesh, which you sacrifice the first day at evening, remain all night until the morning” (Deuteronomy 16:4). The Gemara asks: But perhaps the verse: “Shall not remain all night” comes to teach that one who does so violates two prohibitions and a positive mitzva. Rather, the Gemara rejects this explanation in favor of the claim that the source for a Festival peace-offering comes from a verbal analogy between the term “wilderness” stated here and the term: “wilderness” stated elsewhere. It is written here: “They shall make an offering to Me in the wilderness” (Exodus 5:1), and it is written there: “Did you bring to Me sacrifices and offerings forty years in the wilderness, house of Israel?” (Amos 5:25). Just as there it is referring to actual animal offerings, so too here, it is referring to animal offerings, not merely the celebration of a Festival. The Gemara asks: And in light of this verbal analogy, in what way is this halakha like mountains suspended by a hair? The Gemara answers: The textual evidence is not that strong, as generally one does not derive Torah matters from texts of the tradition, i.e., Prophets and Writings. Since the prophets were not permitted to introduce new halakhot, as the Torah is the only authoritative source in that regard, this verbal analogy does not carry the same weight as a halakha derived from the Torah itself.