מעשה באשה אחת שהזקינה הרבה ובאת לפני ר' יוסי בן חלפתא אמרה ליה רבי הזקנתי יותר מדאי ומעכשיו חיים של נוול הם שאיני טועמת לא מאכל ולא משקה ואני מבקשת להפטר מן העולם, א"ל מה מצוה את למודה לעשות בכל יום, א"ל למודה אני אפילו יש לי דבר חביב אני מנחת אותו ומשכמת לבית הכנסת בכל יום, א"ל מנעי עצמך מבית הכנסת שלשה ימים זה אחר זה, הלכה ועשתה כן וביום השלישי חלתה ומתה,
There was a story told of an extremely old woman who came to R Yosei B. Chalafta. She said to him "Rebbi, I have become too old, and my life is now corrupted, for I don't taste any food or drink. I would like to take my leave from this world." He said to her, "What mitzva are you accustomed to doing?" She replied, "I go to the synagogue each day, no matter what else there is for me to do." He replied, "Don't go for three consecutive days." She did so and on the third day, got sick and died.
(3) All stirring things that are alive, yours shall be for food, like the green plants, I have given all to you. (4)But flesh with its lifeblood still in it you shall not eat. (5) And just so, your lifeblood I will requite, from every beast I will requite it, and from humankind, from every man’s brother, I will requite human life.
(יג) כָּל רֶמֶשׂ אֲשֶׁר הוּא חַי, אַךְ בָּשָׂר בְּנַפְשׁוֹ דָּמוֹ (בראשית ט, ג ד), רַבִּי יוֹסֵי בַּר אַיְּבוּ בְּשֵׁם רַבִּי יוֹחָנָן אָדָם הָרִאשׁוֹן שֶׁלֹא הֻתַּר לִבְשַׂר תַּאֲוָה לֹא הֻזְהַר עַל אֵבָר מִן הֶחָי, אֲבָל בְּנֵי נֹחַ שֶׁהֻתְּרוּ לִבְשַׂר תַּאֲוָה הֻזְהֲרוּ עַל אֵבָר מִן הֶחָי. (בראשית ט, ד): אַךְ לְהָבִיא אֶת הַחוֹנֵק עַצְמוֹ, יָכוֹל כְּשָׁאוּל, תַּלְמוּד לוֹמַר אַךְ יָכוֹל כַּחֲנַנְיָה מִישָׁאֵל וַעֲזַרְיָה, תַּלְמוּד לוֹמַר אַךְ. (בראשית ט, ה):
"All stirring things that are alive, yours shall be for food, like the green plants, I have given all to you. But flesh with its lifeblood still in it you shall not eat. And just so, your lifeblood I will requite, from every beast I will requite it, and from humankind, from every man’s brother, I will requite human life." (Genesis 9:3-4) Rabbi Yosei bar Aivu said in the name of Rabbi Yochanan: Adam HaRishon wasn't allowed to eat [non-sacrificial] meat and [therefore] wasn't commanded not to eat a limb from a living animal, however, the children of Noach, for whom [non-sacrificial] meat was permitted, were also commanded not to eat the limb from a living animal. The world "and just so (אך)" (in verse 5) comes to include one who hangs himself. I might have thought that this would include someone who acts like Saul? The verse writes "only". I might have thought that this would include Chananya, Mishael, and Azariah (who jumped into a furnace rather than serve idols)? The verse writes, "only".
ב"ה וכ' בא"ח בב"ר דורש אך את דמכם לנפשותיכם וכו' אזהרה לחונק את עצמו יכול אפילו כחנניה מישאל ועזריה ת"ל אך פי' שבשעת השמד יכול למסור עצמו למיתה ולהרוג את עצמו אם הוא יודע שלא יוכל לעמוד בנסיון וכן יכול אפי' כשאול בן קיש שאם ירא שמא יעשו לו יסורים קשים שיכול למסור עצמו למיתה ת"ל אך ומכאן הביאו ראיה השוחטים התינוקות בשעת השמד ויש שאסרו ומפרשים הך ת"ל אך שאינו יכול להרוג עצמו וחנניה מישאל ועזריה מסרו עצמם ביד אחרים אבל הם לא פגעו בעצמם ושאול בן קיש שלא ברצון חכמים עשה
It's written in the Orchot Chayim that the midrash in Bereshit Rabbah explains the verse "And just so, your lifeblood I will requite..." as a warning to those who kill themselves. One might have thought this includes Chananya, Mishael, and Azaryah, therefore the Torah writes "אך". This means that when there's a decree against the Jewish people, one may give himself over to be killed or kill himself if he knows that he won't be able to withstand the experience [and will sin]. And this is the case even if he's like Shaul ben Kish that if he's afraid of going through immense suffering that he can kill himself. Those who killed children during the days of decrees against the Jews brought a proof for their actions from here. And there are those who understand this midrash [in the opposite manner] that in these cases one is not allowed to kill oneself.
דִּלְמָא מַלְקוֹת חָמוּר? דְּאָמַר רַב: אִילְמָלֵי נַגְּדוּהּ לַחֲנַנְיָה מִישָׁאֵל וַעֲזַרְיָה — פְּלַחוּ לְצַלְמָא!
Perhaps the punishment of lashes is more severe, as Rav said: Had they flogged Hananiah, Mishael, and Azariah (see Daniel, chapter 3) instead of casting them into the fiery furnace, these three would have been induced to worship the graven image.
ובקונטריסין כתוב וז"ל אלמלא נגדוהו פי' ה"ר אליעזר דלא חייבה תורה אלא למסור עצמן למיתה כדכתיב בכל נפשך אפילו הוא נוטל את נפשך אבל להחמיר עליהם יותר ממיתה לא היו חייבים ויפה פי'
And in the pamphlets it's written that R Eliezer explained that the Torah does not require you to give yourself over to torture so that you won't worship idols, only to give up your life. But something as severe as torture which is worse than death, one is not required to do that, and this is a good explanation.
It seems to me that this is what the Gemara is saying: There are times when it's necessary to pray for mercy that one die, like when the person is suffering tremendously and it's impossible that he'll recover, as in the story with Rebbi (Ketubot 104a) and his maidservant.
...
And that's why the Gemara says that one who visits the ill helps him with his prayers, and someone who doesn't visit the ill doesn't help him, because even for that little relief [of death] he can't pray for.
(ה) ... רַבִּי אוֹמֵר, הַזְּכוּת תּוֹלָה בַמַּיִם הַמְאָרְרִים, וְאֵינָהּ יוֹלֶדֶת וְאֵינָהּ מַשְׁבַּחַת, אֶלָּא מִתְנַוְּנָה וְהוֹלֶכֶת, לְסוֹף הִיא מֵתָה בְּאוֹתָהּ מִיתָה:
(5) ...Rabbi Yehuda HaNasi says: Merit delays the punishment of the water that causes the curse, but a woman whose punishment is delayed does not give birth and does not flourish; rather, she progressively deteriorates. Ultimately she dies by the same death as a sota who dies immediately.
שו"ת ציץ אליעזר חלק ה - רמת רחל סימן כט
(ד) ונראה לי להוסיף להביא ראיה מפורשת דגם חיי צער ויסורי מחלה אשר אין מפלט ממנה כדאיים הם ומובחרים יותר מהמות, ושגם המשכת חיים כאלה תלויים בזכות, מדברי המשנה בסוטה ד' כ"ב ע"ב דאיתא: רבי אומר הזכות תולה במים המאררים ואינה יולדת ואינה משבחת אלא מתנוונה והולכת לסוף היא מתה באותה מיתה.
Tzitz Eliezer (Eliezer Waldenberg) 5:29
And I want to add another proof that life, even one of tremendous suffering from which there is no escape, is still preferable to death, and that continuing such a life is dependent on one's merit, from the mishna in Sotah: Rabbi Yehuda HaNasi says: Merit delays the punishment of the water that causes the curse, but a woman whose punishment is delayed does not give birth and does not flourish; rather, she progressively deteriorates. Ultimately she dies by the same death as a sota who dies immediately.
(ז) מִי שֶׁנָּפְלָה עָלָיו מַפֹּלֶת, סָפֵק הוּא שָׁם סָפֵק אֵינוֹ שָׁם, סָפֵק חַי סָפֵק מֵת, סָפֵק נָכְרִי סָפֵק יִשְׂרָאֵל, מְפַקְּחִין עָלָיו אֶת הַגַּל. מְצָאוּהוּ חַי, מְפַקְּחִין עָלָיו. וְאִם מֵת, יַנִּיחוּהוּ:
(7) Similarly, with regard to one upon whom a rockslide fell, and there is uncertainty whether he is there under the debris or whether he is not there; and there is uncertainty whether he is still alive or whether he is dead; and there is uncertainty whether the person under the debris is a gentile or whether he is a Jew, one clears the pile from atop him. One may perform any action necessary to rescue him from beneath the debris. If they found him alive after beginning to clear the debris, they continue to clear the pile until they can extricate him. And if they found him dead, they should leave him, since one may not desecrate Shabbat to preserve the dignity of the dead.
(יח) מִי שֶׁנָּפְלָה עָלָיו מַפּלֶת סָפֵק הוּא שָׁם סָפֵק אֵינוֹ שָׁם מְפַקְּחִין עָלָיו. מְצָאוּהוּ חַי אַף עַל פִּי שֶׁנִּתְרוֹצֵץ וְאִי אֶפְשָׁר שֶׁיִּבָּרֵא מְפַקְּחִין עָלָיו וּמוֹצִיאִין אוֹתוֹ לְחַיֵּי אוֹתָהּ שָׁעָה:
(18) When an avalanche has fallen, and there is a doubt whether or not it has fallen over a person, it may be cleared. If the person was discovered to be alive, but was crushed [by the fallen debris] to the extent that it is impossible that he will recover, [the debris] may be cleared and the person taken out to enable him to live [however] long he does.
קריינא דאגרתא דהגר״י קנייבסקי מכתב קצ
בעיקר היסוד דכל מה שאפשר להאריך חיי החולה (אפילו אינו אלא לחיי שעה) צריכים לעשות, אמת שגם אני שמעתי בילדותי מימרא כזו, ולא ידעתי אם זהו מבר סמכא הוא, אבל בעיני דבר זה צע"ג, דביו"ד סי' שלט מבואר, דמותר להסיר דבר המונע פטירת החולה, ורק מעשה בגופו אסור לעשות. ואם כן להיות שב ואל תעשה, לכאורה (במקום שעי"ז יתווספו לו יסורים) לא מצאתי איסור. ואדרבה יש ללמוד למנוע מזה, עי' בבית לחם יהודה ביו"ד שם ד"ה מכח שאומרים, שאין לתת מלח להאריך הגסיסה, (ואולי גוסס שאני), אבל לכאורה כל שאינו אלא לחיי שעה, ואין בו הצלה ממש, דמי לנידון הגוסס, שהרי הגוסס הוא כחי לכל דבריו, וכל זה צע"ג
Karyana D'Igarta Letter 190
At the foundation, everything possible should be done to extend the life of a sick person (even if it is only for a short time). I also heard such a statement in my youth, and I did not know if it is a reliable source, but in my eyes, this is difficult to understand because in Yoreh De'ah 339 it is explained that it is permitted to remove something that is preventing the death of the sick person, and only an act upon the body itself is forbidden to do. If so, to be passive, seemingly (in a situation where this would add to his suffering) I did not find a prohibition. And on the contrary, we can learn to prevent this, see Beit Lechem Yehuda on Yoreh De'ah there in the section "because they say," that one should not give salt to prolong the death throes, (and perhaps a goses is different), but seemingly, anything that is only for a short time, and is not actual saving, is comparable to the case of a goses, since a goses is considered alive in all respects, and all this needs further investigation.