Yuma 85a: Rabbi Yishmoel, Rabbi Akiva and Rabbi Elazar ben Azariah were walking on the road, and Levi the Sadar and Rabbi Yishmoel the son of Rabbi Elazar ben Azariah were following them, and the following question was asked of them: How do we know that danger to life overrides Shabbos? [Each sage went on to offer a drasha, but all agreed on the halacha itself.]
יומא פה ע”א: וכבר היה רבי ישמעאל ורבי עקיבא ורבי אלעזר בן עזריה מהלכין בדרך, ולוי הסדר ורבי ישמעאל בנו של רבי אלעזר בן עזריה מהלכין אחריהן. נשאלה שאלה זו בפניהם: מניין לפקוח נפש שדוחה את השבת?
In the First Book of Maccabees 2:31-41, we read:
It was reported to the officers and soldiers of the king [Antiochus] who were in the City of David, in Jerusalem, that those who had flouted the king’s order had gone out to secret refuges in the wilderness. Many hurried out after them, and having caught up with them, camped opposite and prepared to attack them on the Sabbath. The pursuers said to them, “Enough of this! Come out and obey the king’s command, and you will live.” But they replied, “We will not come out, nor will we obey the king’s command to profane the Sabbath.” Then the enemy attacked them at once. But they did not retaliate; they neither threw stones, nor blocked up their secret refuges. They said, “Let us all die in innocence; heaven and earth are our witnesses that you destroy us unjustly.” So the officers and soldiers attacked them on the Sabbath, and they died with their wives, their children and their animals, to the number of a thousand persons. When Matisyahu and his friends heard of it, they mourned deeply for them. They said to one another, “If we all do as our kindred have done, and do not fight against the Gentiles for our lives and our laws, they will soon destroy us from the earth.” So on that day they came to this decision: “Let us fight against anyone who attacks us on the Sabbath, so that we may not all die as our kindred died in their secret refuges.”
The question is: why didn’t those thousand Jews defend themselves? How could it be that these kedoshim, who were so moser nefesh for the Torah, were not aware of the halacha, universally agreed upon in the Gemara, that danger to life overrides Shabbos?
The answer is that this was a time of shmad. The Gemara says in Sanhedrin 74a: Rabbi Yochanan said that this whole rule – that danger to life overrides all mitzvos except for three – was only said when it is not a time of shmad, but at a time of shmad, even a small mitzvah takes precedence over life. This is provided, of course, that the gentile’s intent is to force the Jew to transgress. If the gentile’s intent is for his own convenience (e.g. he orders the Jew to cook a meal for him on Shabbos), then even during a time of shmad the Jew should obey.
The Jews in Matisyahu’s time held that when the Greeks attacked them on Shabbos, their intent was to force the Jews to violate Shabbos. The Greeks figured that they would score a victory either way. If the Jews refused to defend themselves, they would slaughter them and get rid of these stubborn religious people. If the Jews did defend themselves on Shabbos, they would be making them violate Shabbos.
Matisyahu agreed to this argument in principle, but said, “If we don’t fight back, they will soon destroy us from the earth.” In other words, he argued that although in a time of shmad, any mitzvah takes precedence over life, danger to the entire Jewish people is different. This is the same argument that obligated Esther to go to Achashveirosh willingly, committing an aveirah for the sake of saving the Jewish people. (See Noda Biyehuda Yoreh Deah 154)
[This is how it sounds from the words of the Book of Maccabees, but Matisyahu may have also argued that the Greeks attacked on Shabbos solely for their own convenience. They figured that the Jews would not defend themselves, so this would be an easy win for them.]
