In siman 145 it will be explained that anything in which there is no grasp of human hands—meaning that man did not make it, but rather it was created so—the object is not forbidden as a ne'evad. This is a decree of the Torah, as it is written: "You shall surely destroy all the places where the nations whom you shall dispossess served their gods, upon the high mountains," etc., and we expound: their gods which are upon the mountains, and not the mountains themselves as gods. This means that if they worshiped the mountains, they are not forbidden, for it is not within the power of man to forbid through his folly the handiwork of the Holy One, Blessed be He. And although the worshiper is liable for the death penalty, nevertheless, the object is not forbidden. Since the ne'evad itself is not forbidden for benefit, all the more so its offering is not forbidden for benefit. This is what the sages taught in the Mishnah [39b]: One who slaughters in the name of mountains, in the name of hills, in the name of seas, in the name of rivers, or in the name of deserts—his slaughtering is invalid, but their law is not like "sacrifices of the dead" that would be forbidden for benefit. However, it is forbidden for eating, since it was slaughtered for worship. Such is the law when one slaughters in the name of the sun, the moon, the stars, or the constellations, for their law is like that of something attached, since there is no grasp of human hands in them and they are like things attached to the sphere of the firmament [as appears to be the intent of the Tosafot there, and examine it closely]. But one who slaughters in the name of the ministers appointed over the mountains, the hills, the seas, the rivers, the deserts, the sun, the moon, the stars, and the constellations, or who slaughters to Michael the great minister, or to a small worm in the sea—behold, these are "sacrifices of the dead" and are forbidden for benefit, for they are considered like detached things [Tosafot ibid.], even though the grasp of human hands does not apply to them, because this is the essence of avodah zarah. Furthermore, the sun and the moon have angels that lead them, as is stated in the Midrash [ibid.]. From the words of Rashi, of blessed memory, [ibid.] it is explained that one who slaughters even in the name of the sun and the moon themselves, and likewise in the name of the stars and constellations themselves, it is also "sacrifices of the dead" and forbidden for benefit, see there; and he holds that they are like detached things, as I have written.
בסי' קמ"ה יתבאר שכל שאין בה תפיסת ידי אדם כלומר שהאדם לא עשה זה אלא נבראת כך אין הדבר נאסרת בנעבד וגזירת התורה היא דכתיב אבד תאבדון את כל המקומות אשר עבדו שם הגוים את אלהיהם על ההרים הרמים וגו' ודרשינן אלהיהם שעל ההרים ולא ההרים אלהיהם כלומר שאם עבדו את ההרים אינם נאסרים דאין בכח אדם לאסור ע"י שטותו מעשה ידיו של הקב"ה והגם שהעובד חייב מיתה מ"מ אין הדבר נאסר וכיון שהנעבד עצמו אינו נאסר בהנאה כ"ש שהתקרובת שלה אינה נאסרת בהנאה וזהו ששנו חכמים במשנה [ל"ט:] השוחט לשם הרים לשם גבעות לשם ימים לשם נהרות לשם מדבריות שחיטתו פסולה ואין דינם כזבחי מתים שתאסר בהנאה ומיהו באכילה אסורה כיון שנשחט לעבודה וכן הדין כששחט לשם חמה ולבנה כוכבים ומזלות דדינם כמחובר כיון שאין בהם תפיסת ידי אדם והם כמחוברים בגלגל הרקיע [כנ"ל בכוונת התוס' שם ודו"ק] אבל השוחט לשם שרים הממונים על ההרים והגבעות והימים והנהרות ומדבריות וחמה ולבנה כוכבים ומזלות או ששחט למיכאל השר הגדול או לשלשול קטן שבים הרי אלו זבחי מתים ואסורה בהנאה דהם נחשבים כתלושים [תוס' שם] אף שלא שייך בהם תפיסת ידי אדם מפני שזהו עיקר עבודת כוכבים וגם לחמה ולבנה יש מלאכים המנהיגים אותם כדאיתא במדרש [שם] ומדברי רש"י ז"ל [שם] מתבאר דהשוחט גם לשם חמה ולבנה עצמה וכן לשם כוכבים ומזלות עצמן הוי ג"כ זבחי מתים ואסור בהנאה ע"ש וס"ל דהם כתלושים וכמ"ש: