yosef in the pit and chanuka

(כא) וַיִּשְׁמַ֣ע רְאוּבֵ֔ן וַיַּצִּלֵ֖הוּ מִיָּדָ֑ם וַיֹּ֕אמֶר לֹ֥א נַכֶּ֖נּוּ נָֽפֶשׁ׃ (כב) וַיֹּ֨אמֶר אֲלֵהֶ֣ם ׀ רְאוּבֵן֮ אַל־תִּשְׁפְּכוּ־דָם֒ הַשְׁלִ֣יכוּ אֹת֗וֹ אֶל־הַבּ֤וֹר הַזֶּה֙ אֲשֶׁ֣ר בַּמִּדְבָּ֔ר וְיָ֖ד אַל־תִּשְׁלְחוּ־ב֑וֹ לְמַ֗עַן הַצִּ֤יל אֹתוֹ֙ מִיָּדָ֔ם לַהֲשִׁיב֖וֹ אֶל־אָבִֽיו׃ (כג) וַֽיְהִ֕י כַּֽאֲשֶׁר־בָּ֥א יוֹסֵ֖ף אֶל־אֶחָ֑יו וַיַּפְשִׁ֤יטוּ אֶת־יוֹסֵף֙ אֶת־כֻּתׇּנְתּ֔וֹ אֶת־כְּתֹ֥נֶת הַפַּסִּ֖ים אֲשֶׁ֥ר עָלָֽיו׃ (כד) וַיִּ֨קָּחֻ֔הוּ וַיַּשְׁלִ֥כוּ אֹת֖וֹ הַבֹּ֑רָה וְהַבּ֣וֹר רֵ֔ק אֵ֥ין בּ֖וֹ מָֽיִם׃

(21) But when Reuben heard it, he tried to save him from them. He said, “Let us not take his life.” (22) And Reuben went on, “Shed no blood! Cast him into that pit out in the wilderness, but do not touch him yourselves”—intending to save him from them and restore him to his father. (23) When Joseph came up to his brothers, they stripped Joseph of his tunic, the ornamented tunic that he was wearing, (24) and took him and cast him into the pit. The pit was empty; there was no water in it.

(א) והבור רק אין בו מים. מִמַּשְׁמַע שֶׁנֶּאֱמַר וְהַבּוֹר רֵק, אֵינִי יוֹדֵעַ שֶׁאֵין בּוֹ מַיִם, מַה תַּלְמוּד לוֹמַר אֵין בּוֹ מָיִם? מַיִם אֵין בּוֹ, אֲבָל נְחָשִׁים וְעַקְרַבִּים יֵשׁ בּוֹ (בראשית רבה, שבת כ"ב):

(1) והבור רק אין בו מים AND THE PIT WAS EMPTY, THERE WAS NO WATER IN IT — Since it states, “the pit was empty”, do I not know that “there was no water in it”? What then is the force of “there was no water in it”? Water, indeed it did not contain, but there were serpents and scorpions in it (Shabbat 22a).

rashi quotes the gemora in שבת that goes as follows

here are a few questions

1) why did רְאוּבֵ֔ן throw יוֹסֵ֖ף into the pit if it had snakes it. it was going to kill him?

2) why does the gemora talk about chanuka then go on to talk about יוֹסֵ֖ף?

3) what happens if he lit the menorah below 20 amos. is it kosher?

(א) והבור רק וגו'. דרש רב נתן בר מניומי משמי' דר' תנחום, והבור רק אין בו מים, ממשמע שנאמר והבור רק איני יודע שאין בו מים, ומה ת"ל אין בו מים, לומר לך, מים אין בו, אבל נחשים ועקרבים יש בו .
(שבת כ"ב א')

(1) There was no water in it. The pit was twenty cubits deep, so they could not see that it was filled with snakes. That is why his miraculous survival did not cause them to repent.

this answers all 3

since it was more then 20 cubits he couldn't see the snakes it talks about this piece since it is also 20 amos and according to the torah temimah is will be posul

רַבִּי יְהוּדָה אוֹמֵר: בְּנֵר חֲנוּכָּה — פָּטוּר. אָמַר רָבִינָא מִשּׁוּם דְּרַבָּה: זֹאת אוֹמֶרֶת נֵר חֲנוּכָּה מִצְוָה לְהַנִּיחָהּ בְּתוֹךְ עֲשָׂרָה. דְּאִי סָלְקָא דַּעְתָּךְ לְמַעְלָה מֵעֲשָׂרָה, לֵימָא לֵיהּ: הָיָה לָךְ לְהַנִּיחַ לְמַעְלָה מִגָּמָל וְרוֹכְבוֹ! וְדִילְמָא, אִי מַיטְּרְחָא לֵיהּ טוּבָא אָתֵי לְאִימְּנוֹעֵי מִמִּצְוָה. אָמַר רַב כָּהֲנָא, דָּרֵשׁ רַב נָתָן בַּר מִנְיוֹמֵי מִשְּׁמֵיהּ דְּרַבִּי תַּנְחוּם: נֵר שֶׁל חֲנוּכָּה שֶׁהִנִּיחָה לְמַעְלָה מֵעֶשְׂרִים אַמָּה — פְּסוּלָה, כְּסוּכָּה וּכְמָבוֹי. וְאָמַר רַב כָּהֲנָא, דָּרֵשׁ רַב נָתָן בַּר מִנְיוֹמֵי מִשְּׁמֵיהּ דְּרַב תַּנְחוּם: מַאי דִכְתִיב ״וְהַבּוֹר רֵק אֵין בּוֹ מָיִם״? מִמַּשְׁמַע שֶׁנֶּאֱמַר ״וְהַבּוֹר רֵק״ אֵינִי יוֹדֵעַ שֶׁאֵין בּוֹ מָיִם? אֶלָּא מַה תַּלְמוּד לוֹמַר ״אֵין בּוֹ מָיִם״ — מַיִם אֵין בּוֹ, אֲבָל נְחָשִׁים וְעַקְרַבִּים יֵשׁ בּוֹ.

Rabbi Yehuda says: If the flax was set on fire by the storekeeper’s Hanukkah lamp that he placed outside the entrance to his store, he is not liable, as in that case, it is permitted for the storekeeper to place his lamp outside. Ravina said in the name of Rabba: That is to say that it is a mitzva to place the Hanukkah lamp within ten handbreadths of the ground. As if it should enter your mind to say that he may place it above ten handbreadths, why is the storekeeper exempt? Let the camel owner say to the storekeeper: You should have placed the lamp above the height of a camel and its rider, and then no damage would have been caused. By failing to do so, the storekeeper caused the damage, and the camel owner should not be liable. The Gemara rejects this: And perhaps one is also permitted to place the Hanukkah lamp above ten handbreadths, and the reason Rabbi Yehuda exempted the storekeeper was due to concern for the observance of the mitzva of kindling Hanukkah lights. He held that if you burden one excessively, he will come to refrain from performing the mitzva of kindling Hanukkah lights. Since the storekeeper placed the Hanukkah lamp outside at the behest of the Sages, the storekeeper should not be required to take extra precautions. With regard to the essence of the matter Rav Kahana said that Rav Natan bar Manyumi taught in the name of Rabbi Tanḥum: A Hanukkah lamp that one placed above twenty cubits is invalid, just as a sukka whose roofing is more than twenty cubits high, and just as an alleyway whose beam, its symbolic fourth partition in order to place an eiruv, is more than twenty cubits high, are invalid. The reason is the same in all three cases: People do not usually raise their heads and see objects at a height above twenty cubits. As there is a requirement to see all of these, they are deemed invalid when placed above that height. And the Gemara cites another statement that Rav Kahana said that Rav Natan bar Manyumi taught in the name of Rav Tanḥum: What is the meaning of the verse that is written with regard to Joseph: “And they took him, and cast him into the pit; and the pit was empty, there was no water in it” (Genesis 37:24)? By inference from that which is stated: And the pit was empty, don’t I know that there was no water in it? Rather, why does the verse say: There was no water in it? The verse comes to emphasize and teach that there was no water in it, but there were snakes and scorpions in it.

ויצילהו מידם. פי' לפי שהאדם בעל בחירה ורצון ויכול להרוג מי שלא נתחייב מיתה משא"כ חיות רעות לא יפגעו באדם אם לא יתחייב מיתה לשמים, והוא אומרו ויצילהו מידם פי' מיד הבחירי ובזה סתר אומרו ונראה מה יהיו חלומותיו וגו' כי הבחירה תבטל הדבר ואין ראיה אם יהרגוהו כי שקר דבר:

ויצילהו מידם. "He saved him from harm at their hands. This action was applauded by the Torah as man is a free creature possessing freedom of choice and able to kill people who are not guilty or have not been convicted, as distinct from wild beasts which do not kill humans unless the latter are guilty of death in the eyes of G'd. The words ויצילהו מידם mean that he saved them from the evil consequences of carrying out their freedom of choice to kill. By doing what he did Reuben nullified the brothers' statement: "we shall see what happens to his dreams."
משרשי המצוה. שידע האדם ויתן אל לבו כי כל אשר יקרהו מטוב עד רע, הוא סבה שתבוא עליו מאת השם ברוך הוא. ומיד האדם מיד איש אחיו לא יהיה דבר בלתי רצון השם ברוך הוא, על כן כשיצערהו או יכאיבהו אדם ידע בנפשו כי עונותיו גרמו, והשם יתברך גזר עליו בכך, ולא ישית מחשבותיו לנקם ממנו, כי הוא אינו סבת רעתו, כי העון הוא המסבב, וכמו שאמר דוד עליו השלום (שמואל ב טז יא) הניחו לו ויקלל כי אמר לו יי. תלה הענין בחטאו ולא בשמעי בן גרא. ועוד נמצא במצוה זו תועלת רבה להשבית ריב ולהעביר המשטמות מלב בני אדם, ובהיות שלום בין אנשים יעשה השם יתברך שלום להם.
It is from the roots of the commandment that a person know and put into his heart that everything that happens to him - good and bad - the cause of it coming to him is from God, blessed be He. And from the hand of man - from the hand of a man to his brother - there would not be anything without the will of God, blessed be He. Hence, when a person caused him pain or hurt him, he should know for himself that his [own] sins caused [it], and that God, may He be blessed, ordained this for him. And he should not place his thoughts to taking vengeance from [the one who pained him], since he is not the cause of his evil, but rather the sin is the cause; like David, peace be upon him, stated (II Samuel 16:11), "leave him to curse, since the Lord told him [so]" - he made the matter depend upon his [own] sin, and not upon Shimei ben Gera. And there is also a great benefit found in this commandment, in quieting a dispute and removing enmity from the heart of people. And when there is peace among people, God, may He be blessed, will make peace for them.

so that we see even you will not be harmed by someone unless you deserve it even if they want to?