Navigating the Jewish Values of Hachnasat Orchim & Pikuach Nefesh
These sources help illuminate the challenge of navigating two key Jewish values: hachnasat orchim and pikuach nefesh
The roots of Hachnasat Orchim (welcoming the guest / stranger): Abraham
(א) וַיֵּרָ֤א אֵלָיו֙ יְהֹוָ֔ה בְּאֵלֹנֵ֖י מַמְרֵ֑א וְה֛וּא יֹשֵׁ֥ב פֶּֽתַח־הָאֹ֖הֶל כְּחֹ֥ם הַיּֽוֹם׃ (ב) וַיִּשָּׂ֤א עֵינָיו֙ וַיַּ֔רְא וְהִנֵּה֙ שְׁלֹשָׁ֣ה אֲנָשִׁ֔ים נִצָּבִ֖ים עָלָ֑יו וַיַּ֗רְא וַיָּ֤רׇץ לִקְרָאתָם֙ מִפֶּ֣תַח הָאֹ֔הֶל וַיִּשְׁתַּ֖חוּ אָֽרְצָה׃ (ג) וַיֹּאמַ֑ר אֲדֹנָ֗י אִם־נָ֨א מָצָ֤אתִי חֵן֙ בְּעֵינֶ֔יךָ אַל־נָ֥א תַעֲבֹ֖ר מֵעַ֥ל עַבְדֶּֽךָ׃ (ד) יֻקַּֽח־נָ֣א מְעַט־מַ֔יִם וְרַחֲצ֖וּ רַגְלֵיכֶ֑ם וְהִֽשָּׁעֲנ֖וּ תַּ֥חַת הָעֵֽץ׃ (ה) וְאֶקְחָ֨ה פַת־לֶ֜חֶם וְסַעֲד֤וּ לִבְּכֶם֙ אַחַ֣ר תַּעֲבֹ֔רוּ כִּֽי־עַל־כֵּ֥ן עֲבַרְתֶּ֖ם עַֽל־עַבְדְּכֶ֑ם וַיֹּ֣אמְר֔וּ כֵּ֥ן תַּעֲשֶׂ֖ה כַּאֲשֶׁ֥ר דִּבַּֽרְתָּ׃ (ו) וַיְמַהֵ֧ר אַבְרָהָ֛ם הָאֹ֖הֱלָה אֶל־שָׂרָ֑ה וַיֹּ֗אמֶר מַהֲרִ֞י שְׁלֹ֤שׁ סְאִים֙ קֶ֣מַח סֹ֔לֶת ל֖וּשִׁי וַעֲשִׂ֥י עֻגֽוֹת׃ (ז) וְאֶל־הַבָּקָ֖ר רָ֣ץ אַבְרָהָ֑ם וַיִּקַּ֨ח בֶּן־בָּקָ֜ר רַ֤ךְ וָטוֹב֙ וַיִּתֵּ֣ן אֶל־הַנַּ֔עַר וַיְמַהֵ֖ר לַעֲשׂ֥וֹת אֹתֽוֹ׃ (ח) וַיִּקַּ֨ח חֶמְאָ֜ה וְחָלָ֗ב וּבֶן־הַבָּקָר֙ אֲשֶׁ֣ר עָשָׂ֔ה וַיִּתֵּ֖ן לִפְנֵיהֶ֑ם וְהֽוּא־עֹמֵ֧ד עֲלֵיהֶ֛ם תַּ֥חַת הָעֵ֖ץ וַיֹּאכֵֽלוּ׃

(1) The Eternal appeared to [Abraham] by the terebinths of Mamre; he was sitting at the entrance of the tent as the day grew hot. (2) Looking up, he saw three men standing near him. As soon as he saw them, he ran from the entrance of the tent to greet them and, bowing to the ground, (3) he said, “My lords, if it please you, do not go on past your servant. (4) Let a little water be brought; bathe your feet and recline under the tree. (5) And let me fetch a morsel of bread that you may refresh yourselves; then go on—seeing that you have come your servant’s way.” They replied, “Do as you have said.” (6) Abraham hastened into the tent to Sarah, and said, “Quick, three seahs of choice flour! Knead and make cakes!” (7) Then Abraham ran to the herd, took a calf, tender and choice, and gave it to a servant-boy, who hastened to prepare it. (8) He took curds and milk and the calf that had been prepared and set these before them; and he waited on them under the tree as they ate.

Hospitality is so important that (according to some of the Rabbis in the Talmud),
even God waits while we welcome guests:

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

Rabbi Yoḥanan said: Hospitality toward guests is as great as rising early to go to the study hall, as the mishna equates them and teaches: Due to the guests and due to suspension of Torah study in the study hall. And Rav Dimi from Neharde’a says: Hospitality toward guests is greater than rising early to the study hall, as it teaches: Due to the guests, and only afterward: And due to suspension of Torah study in the study hall. Rav Yehuda said that Rav said on a related note: Hospitality toward guests is greater than receiving the Divine Presence, as when Abraham invited his guests it is written: “And he said: Lord, if now I have found favor in Your sight, please pass not from Your servant” (Genesis 18:3). Abraham requested that God, the Divine Presence, wait for him while he tended to his guests appropriately.

Our houses / synagogues should be open and easily accessible to all, including the poor.
יוסף בן יוחנן איש ירושלים אומר יהי ביתך פתוח לרוחה ויהיו עניים בני ביתך ואל תרבה שיחה עם האשה. יהי ביתך פתוח לרוחה כיצד מלמד שיהא ביתו של אדם פתוח לרוחה לדרום ולמזרח ולמערב ולצפון כגון (שעשה) איוב שעשה ארבעה פתחים לביתו. ולמה עשה איוב ארבעה פתחים לביתו. כדי שלא יהיו עניים מצטערים להקיף את כל הבית. הבא מן הצפון יכנס כדרכו הבא מן הדרום יכנס כדרכו וכן לכל רוח לכך עשה איוב ארבעה פתחים לביתו: ויהיו עניים בני ביתך ולא בני ביתך ממש אלא שיהיו [עניים] משיחין מה שאוכלים ושותים בתוך ביתך כדרך שהיו עניים משיחין מה שאוכלים ושותין בתוך ביתו של איוב. וכשנפגשו זה בזה אמר אחד לחברו מאין אתה בא מתוך ביתו של איוב ולאן אתה הולך לביתו של איוב וכשבא עליו ההוא פורעניות גדול אמר לפני הקב״ה רבש״ע לא הייתי מאכיל רעבים ומשקה צמאים שנאמר (איוב ל״א:י״ז) ואוכל פתי לבדי ולא אכל יתום ממנה ולא הייתי מלביש ערומים שנאמר (שם) ומגז כבשי יתחמם. אעפ״כ א״ל הקב״ה לאיוב איוב עדיין לא הגעת [לחצי שיעור] של אברהם אתה יושב ושוהה בתוך ביתך ואורחין נכנסים אצלך את שדרכו לאכול פת חטים האכילתו פת חטים את שדרכו לאכול בשר האכילתו בשר את שדרכו לשתות יין השקיתו יין אבל אברהם לא עשה כן אלא יושב ומהדר בעולם וכשימצא אורחין מכניסן בתוך ביתו את שאין דרכו לאכול פת חטין האכילהו פת חטין את שאין דרכו לאכול בשר האכילהו בשר ואת שאין דרכו לשתות יין השקהו יין ולא עוד אלא עמד ובנה פלטרין גדולים על הדרכים והניח מאכל ומשקה וכל הבא ונכנס אכל ושתה וברך לשמים לפיכך נעשית לו נחת רוח. וכל שהפה שואל מצוי בתוך ביתו של אברהם שנאמר (בראשית כ״א:ל״ג) ויטע אשל בבאר שבע:

Yosef ben Yohanan, a man of Jerusalem, would say: Let your house be open to all, let the poor be members of your household.


Let your house be open to all. How so? This teaches that a person’s house should be open to all sides: the south, the east, the west, and the north. This is like Job, who made four doors to his house. And why did Job make four doors to his house? So that the poor would not have to trouble themselves to go around the whole house. Someone who came in from the north would enter from that direction, and someone who came in from the south would enter from that direction, and so with every direction. That is why Job made four doors to his house.
Let the poor be members of your household. Not that they will be actual members of your household, but they will speak of what they ate and drank in your house, in the way that they speak of what they ate and drank in the house of Job. For when they would meet, one would say to another: Where are you coming from? (And the other would reply:) From the house of Job; and where are you going? (And the first one would say:) To the house of Job. So when all the great tragedies came upon him, Job said before the Holy Blessed One: Did I not feed the hungry and give drink to the thirsty? as it says (Job 31:17), “Did I ever eat my food alone, and not let orphan eat from it?” And did I not clothe the naked? as it says (Job 31:20), “He warmed himself from the shearings of my sheep.” And even so, these tragedies came upon me. The Holy Blessed One said to Job: Job, you still have not gotten to [even half] the level of Abraham. You sit and wait in your house, and guests come in to you. And if it is someone’s custom is to eat wheat bread, you feed him wheat bread. And if someone’s custom is to eat meat, you feed him meat. And if someone’s custom is to drink wine, you pour him wine. But Abraham did not do this. Rather, he sat and looked out at the world, and when he would see potential guests, he would go bring them into his house. And if someone was not accustomed to eating wheat bread, he would feed him wheat bread. And if someone was not accustomed to eating meat, he would feed him meat. And if someone was not accustomed to drinking wine, he would pour him wine. Not only that, but he built large booths out on the roads, where he would leave food and drink, and anyone who came by and entered would eat and drink and bless the heavens, and he would feel content. Anything that one could ask for was available in the house of Abraham, as it says (Genesis 21:33), “And he planted an Eshel tree in Beer Sheba.”

כִּי הֲוָה כָּרֵךְ רִיפְתָּא, הֲוָה פָּתַח לְבָבֵיהּ, וְאָמַר: כׇּל מַאן דִּצְרִיךְ לֵיתֵי וְלֵיכוֹל.

The Gemara further relates: When Rav Huna would eat bread, he would open the doors to his house, saying: Whoever needs, let him come in and eat.

The basic principle: Love your neighbor as yourself
(יח) לֹֽא־תִקֹּ֤ם וְלֹֽא־תִטֹּר֙ אֶת־בְּנֵ֣י עַמֶּ֔ךָ וְאָֽהַבְתָּ֥ לְרֵעֲךָ֖ כָּמ֑וֹךָ אֲנִ֖י יְהֹוָֽה׃

(18) You shall not take vengeance or bear a grudge against your countrymen. Love your neighbor as yourself: I am the Eternal.

And yet there ARE people in the world who are evil, who wish to do you harm:
(יז) זָכ֕וֹר אֵ֛ת אֲשֶׁר־עָשָׂ֥ה לְךָ֖ עֲמָלֵ֑ק בַּדֶּ֖רֶךְ בְּצֵאתְכֶ֥ם מִמִּצְרָֽיִם׃ (יח) אֲשֶׁ֨ר קָֽרְךָ֜ בַּדֶּ֗רֶךְ וַיְזַנֵּ֤ב בְּךָ֙ כׇּל־הַנֶּחֱשָׁלִ֣ים אַֽחֲרֶ֔יךָ וְאַתָּ֖ה עָיֵ֣ף וְיָגֵ֑עַ וְלֹ֥א יָרֵ֖א אֱלֹהִֽים׃ (יט) וְהָיָ֡ה בְּהָנִ֣יחַ יְהֹוָ֣ה אֱלֹהֶ֣יךָ ׀ לְ֠ךָ֠ מִכׇּל־אֹ֨יְבֶ֜יךָ מִסָּבִ֗יב בָּאָ֙רֶץ֙ אֲשֶׁ֣ר יְהֹוָה־אֱ֠לֹהֶ֠יךָ נֹתֵ֨ן לְךָ֤ נַחֲלָה֙ לְרִשְׁתָּ֔הּ תִּמְחֶה֙ אֶת־זֵ֣כֶר עֲמָלֵ֔ק מִתַּ֖חַת הַשָּׁמָ֑יִם לֹ֖א תִּשְׁכָּֽח׃ {פ}

(17) Remember what Amalek did to you on your journey, after you left Egypt— (18) how, undeterred by fear of God, he surprised you on the march, when you were famished and weary, and cut down all the stragglers in your rear. (19) Therefore, when the Eternal your God grants you safety from all your enemies around you, in the land that the Adonai your God is giving you as a hereditary portion, you shall blot out the memory of Amalek from under heaven. Do not forget!

In Deuteronomy 25, we see the commandment "to remember Amalek" (Amalek is known for attacking the most vulnerable, totally unprovoked, and Amalek becomes a symbol for pure evil - for the people in the world who seek harm and destruction.)
We are supposed to "blot out" the memory of Amalek, but also "do not forget!" In other words, even when you think you're safe, never forget that there are people in the world who want to harm you. Evil is real.
Self-defense is always allowed in Jewish law / tradition:

(ד) צָרוֹר אֶת הַמִּדְיָנִים, לָמָּה (במדבר כה, יח): כִּי צֹרְרִים הֵם לָכֶם, מִכָּן אָמְרוּ חֲכָמִים בָּא לְהָרְגֶּךָ הַשְׁכֵּם לְהָרְגוֹ.

(4) 4 (Numb. 25:17) “Harass the Midianites”: Why? (As in Numb. 25:18,) “Because they are harassing you.” Hence the sages have said, “If someone comes to kill you, act first to kill him.”

(יד) ר' אחא אמר משום ר"ע הרי הוא אומר (שמות כב) אם במחתרת ימצא הגנב וגו' בעל הבית מהו ודאי או ספק הוי אומר ספק אם הורגין נפש להחיות נפש בספק דין הוא שידחו את השבת להחיות נפש בספק הא לא נתנו מצות לישראל אלא לחיות בהן שנאמר (ויקרא יח) אשר יעשה אותם האדם וחי בהן וחי בהן ולא שימות בהן אין לך דבר עומד בפני פיקוח נפש חוץ מע"ז וגילוי עריות ושפיכות דמים

(14) R. Aha said in the name of R. Akiva. Behold, it says: “If a thief is found tunneling in…” Is the house’s owner certain or uncertain? You must say he is uncertain. If they kill a person to save a life in a case of uncertainty, it is logical that they should push off the Sabbath, in order to save a life in a case of uncertainty. Behold, the commandments were only given to Israel that they might live by them, as it is written “Which a man shall perform and live by them” - he shall live by them, and not die by them. Nothing takes precedence over saving a life, save idolatry, sexual sins, and murder.

Preserving life (pikuach nefesh) is of the utmost importance:

(א) דְחוּיָה הִיא שַׁבָּת אֵצֶל סַכָּנַת נְפָשׁוֹת כִּשְׁאָר כָּל הַמִּצְוֹת. לְפִיכָךְ חוֹלֶה שֶׁיֵּשׁ בּוֹ סַכָּנָה עוֹשִׂין לוֹ כָּל צְרָכָיו בְּשַׁבָּת עַל פִּי רוֹפֵא אֻמָּן שֶׁל אוֹתוֹ מָקוֹם. סָפֵק שֶׁהוּא צָרִיךְ לְחַלֵּל עָלָיו אֶת הַשַּׁבָּת סָפֵק שֶׁאֵינוֹ צָרִיךְ. וְכֵן אִם אָמַר רוֹפֵא לְחַלֵּל עָלָיו אֶת הַשַּׁבָּת וְרוֹפֵא אַחֵר אוֹמֵר אֵינוֹ צָרִיךְ מְחַלְּלִין עָלָיו אֶת הַשַּׁבָּת שֶׁסְּפֵק נְפָשׁוֹת דּוֹחֶה אֶת הַשַּׁבָּת:

(1) Like all the other commandments, Shabbat is overridden by danger to life. Hence we execute all of the needs of an ill person in mortal danger according to the word of an expert physician in that place on Shabbat. When there is a doubt whether there is a need to profane the Shabbat for him or there is not a need, and likewise if [one] physician said to profane the Shabbat for him but another physician said he does not need [it], we profane the Shabbat. For [even] a doubt about [danger to] life overrides the Shabbat....

One can violate Shabbat to save a life (pikuach nefesh), and one must also try to save /protect those whose lives are in danger ("do not stand idly by the blood of another")

מתני׳ ואלו הן שמצילין אותן בנפשן הרודף אחר חבירו להרגו

גמ׳ ת"ר מניין לרודף אחר חבירו להרגו שניתן להצילו בנפשו ת"ל (ויקרא יט, טז) לא תעמוד על דם רעך והא להכי הוא דאתא האי מיבעי ליה לכדתניא מניין לרואה את חבירו שהוא טובע בנהר או חיה גוררתו או לסטין באין עליו שהוא חייב להצילו ת"ל לא תעמוד על דם רעך אין ה"נ

MISHNA: And these are the ones who are saved from transgressing even at the cost of their lives; that is to say, these people may be killed so that they do not perform a transgression: One who pursues another to kill him...

GEMARA: The Sages taught in a baraita: From where is it derived that with regard to one who pursues another in order to kill him, the pursued party may be saved at the cost of the pursuer’s life? The verse states: “You shall not stand idly by the blood of another” (Leviticus 19:16); rather, you must save him from death. The Gemara asks: But does this verse really come to teach us this? This verse is required for that which is taught in a baraita: From where is it derived that one who sees another drowning in a river, or being dragged away by a wild animal, or being attacked by bandits [listin], is obligated to save him? The Torah states: “You shall not stand idly by the blood of another.” The Gemara answers: Yes, it is indeed so that this verse relates to the obligation to save one whose life is in danger.

Many biblical texts describe the importance of security
(י) וַיְהִ֣י ׀ מִן־הַיּ֣וֹם הַה֗וּא חֲצִ֣י נְעָרַי֮ עֹשִׂ֣ים בַּמְּלָאכָה֒ וְחֶצְיָ֗ם מַחֲזִיקִים֙ וְהָרְמָחִ֣ים הַמָּגִנִּ֔ים וְהַקְּשָׁת֖וֹת וְהַשִּׁרְיֹנִ֑ים וְהַ֨שָּׂרִ֔ים אַחֲרֵ֖י כׇּל־בֵּ֥ית יְהוּדָֽה׃ (יא) הַבּוֹנִ֧ים בַּחוֹמָ֛ה וְהַנֹּשְׂאִ֥ים בַּסֶּ֖בֶל עֹמְשִׂ֑ים בְּאַחַ֤ת יָדוֹ֙ עֹשֶׂ֣ה בַמְּלָאכָ֔ה וְאַחַ֖ת מַחֲזֶ֥קֶת הַשָּֽׁלַח׃ (יב) וְהַ֨בּוֹנִ֔ים אִ֥ישׁ חַרְבּ֛וֹ אֲסוּרִ֥ים עַל־מׇתְנָ֖יו וּבוֹנִ֑ים וְהַתּוֹקֵ֥עַ בַּשּׁוֹפָ֖ר אֶצְלִֽי׃
(10) From that day on, half my servants did work and half held lances and shields, bows and armor. And the officers stood behind the whole house of Judah (11) who were rebuilding the wall. The basket-carriers were burdened, doing work with one hand while the other held a weapon. (12) As for the builders, each had his sword girded at his side as he was building. The trumpeter stood beside me.
The challenge for us - now and throughout Jewish history - is how to hold both of these values - hachnasat orchim (hospitality) and pikuach nefesh (preserving life) -
without sacrificing one or the other.