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

This is the bread of affliction that our ancestors ate in the land of Egypt. Anyone who is famished should come and eat, anyone who is in need should come and partake of the Pesach. Now we are here, next year we should be in the land of Israel; this year we are enslaved, next year we should be free.

(יג) וַיֹּ֣אמֶר לְאַבְרָ֗ם יָדֹ֨עַ תֵּדַ֜ע כִּי־גֵ֣ר ׀ יִהְיֶ֣ה זַרְעֲךָ֗ בְּאֶ֙רֶץ֙ לֹ֣א לָהֶ֔ם וַעֲבָד֖וּם וְעִנּ֣וּ אֹתָ֑ם אַרְבַּ֥ע מֵא֖וֹת שָׁנָֽה׃ (יד) וְגַ֧ם אֶת־הַגּ֛וֹי אֲשֶׁ֥ר יַעֲבֹ֖דוּ דָּ֣ן אָנֹ֑כִי וְאַחֲרֵי־כֵ֥ן יֵצְא֖וּ בִּרְכֻ֥שׁ גָּדֽוֹל׃ (טו) וְאַתָּ֛ה תָּב֥וֹא אֶל־אֲבֹתֶ֖יךָ בְּשָׁל֑וֹם תִּקָּבֵ֖ר בְּשֵׂיבָ֥ה טוֹבָֽה׃ (טז) וְד֥וֹר רְבִיעִ֖י יָשׁ֣וּבוּ הֵ֑נָּה כִּ֧י לֹא־שָׁלֵ֛ם עֲוֺ֥ן הָאֱמֹרִ֖י עַד־הֵֽנָּה׃ (יז) וַיְהִ֤י הַשֶּׁ֙מֶשׁ֙ בָּ֔אָה וַעֲלָטָ֖ה הָיָ֑ה וְהִנֵּ֨ה תַנּ֤וּר עָשָׁן֙ וְלַפִּ֣יד אֵ֔שׁ אֲשֶׁ֣ר עָבַ֔ר בֵּ֖ין הַגְּזָרִ֥ים הָאֵֽלֶּה׃ (יח) בַּיּ֣וֹם הַה֗וּא כָּרַ֧ת ה' אֶת־אַבְרָ֖ם בְּרִ֣ית לֵאמֹ֑ר לְזַרְעֲךָ֗ נָתַ֙תִּי֙ אֶת־הָאָ֣רֶץ הַזֹּ֔את מִנְּהַ֣ר מִצְרַ֔יִם עַד־הַנָּהָ֥ר הַגָּדֹ֖ל נְהַר־פְּרָֽת׃ (יט) אֶת־הַקֵּינִי֙ וְאֶת־הַקְּנִזִּ֔י וְאֵ֖ת הַקַּדְמֹנִֽי׃ (כ) וְאֶת־הַחִתִּ֥י וְאֶת־הַפְּרִזִּ֖י וְאֶת־הָרְפָאִֽים׃ (כא) וְאֶת־הָֽאֱמֹרִי֙ וְאֶת־הַֽכְּנַעֲנִ֔י וְאֶת־הַגִּרְגָּשִׁ֖י וְאֶת־הַיְבוּסִֽי׃ (ס)

(13) And He said to Abram, "Know for sure that your descendants will be foreigners in a land that is not theirs for 400 years. They will be enslaved and oppressed. (14) But I will finally bring judgment against the nation who enslaves them, and they will then leave with great wealth. (15) You shall join your fathers in peace, and you will be buried at a good old age. (16) The fourth generation will return here, since the Amorite's sin will not have run its course until then." (17) The sun set, and it became very dark. A smoking furnace and a flaming torch passed between the halves of the animals. (18) On that day, G-d made a covenant with Abram, saying, "To your descendants I have given this land, from the Egyptian River as far as the great river, the Euphrates; (19) [the lands of] the Kenites, the Kenizites, the Kadmonites, (20) the Hittites, the Perizites, the Rephaim, (21) the Amorites, the Canaanites, the Girgashites and the Yebusites."

(לד) כְּאֶזְרָ֣ח מִכֶּם֩ יִהְיֶ֨ה לָכֶ֜ם הַגֵּ֣ר ׀ הַגָּ֣ר אִתְּכֶ֗ם וְאָהַבְתָּ֥ לוֹ֙ כָּמ֔וֹךָ כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֣רֶץ מִצְרָ֑יִם אֲנִ֖י ה' אֱלֹהֵיכֶֽם׃

(34) The stranger who resides with you shall be to you as one of your citizens; you shall love him as yourself, for you were strangers in the land of Egypt: I the L-RD am your G-d.

(יט) וַאֲהַבְתֶּ֖ם אֶת־הַגֵּ֑ר כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֥רֶץ מִצְרָֽיִם׃

(19) You must also show love toward the foreigner ("ger"), since you were foreigners in the land of Egypt.

() לאהוב את הגר, שנאמר: "ואהבתם את הגר" (דברים י, יט).

Rabbi Moses ben Maimon (1134-1204), commonly known as Maimonides or Rambam

207. To love the convert [to Judaism] ("ger") as it says “and you shall love the convert” (Devarim 10:19)

וְגֵ֥ר לֹא־תוֹנֶ֖ה וְלֹ֣א תִלְחָצֶ֑נּוּ כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֥רֶץ מִצְרָֽיִם׃

You shall not wrong a stranger ("ger") or oppress him, for you were strangers in the land of Egypt.

שלא יונה במקח וממכר, שנאמר "אל תונו, איש את אחיו" (ויקרא כה,יד).

We are forbidden from cheating in financial matters, as the verse says, "when you buy or sell , do not cheat one another." (Lev 25:14)

שלא להונות את הגר בדברים, שנאמר "וְגֵר לֹא תוֹנֶה" (שמות כב, כ).

We are forbidden from verbally causing emotional distress to a convert, as the verse says, "Do not wrong a convert." (Ex 22:20)

שלא להונות את הגר במקח וממכר, שנאמר "וְלֹא תִלְחָצֶנּוּ" (שמות כב, כ).

We are forbidden from causing financial damage to a convert, as the verse says, "Do not oppress him." (Ex 22:20)

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

Rabbi Shlomo Yitzchaki (1040 – 1105)

(20) כי גרים הייתם FOR YE WERE STRANGERS — If you annoy him he can annoy you back by saying to you: “You also descend from strangers”. "Do not reproach your fellow-man for a fault which is also yours" (Mekhilta d'Rabbi Yishmael 22:20). Wherever "Ger" occurs in Scriptures it signifies a person who has not been born in that land (where he is living) but has come from another country to sojourn there.

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

Rabbi Moses ben Nahman (1194–1270), commonly known as Nachmanides

(20) For you were strangers in the land of Egypt: Not all strangers are made fitting [for special treatment just] because we were strangers in [some] land for a time. And there is no reason that they should be assured [of this treatment] forever because of this. And Rashi on Exodus 22:20 explained that it is the reason why "you should not oppress him with words [...], for if you oppress him, he can oppress you [also] by saying to you, 'You also come from strangers' - [regarding] a blemish in you, do not speak about it in your fellow." And Rabbi Avraham (Ibn Ezra on Exodus 22:20) said, "Remember that you were strangers like him." But I do not believe these explanations fundamentally address the issue. Rather, what is correct in my eyes is that when it states, "Do not oppress the stranger and do not harry him," you may think that he has no one to save him from your hand, since you know that you were strangers in the land of Egypt, and you saw the harrying that Egypt harried you and that I took vengeance for you, 'since I see the tear of the oppressed who has no comforter and has no power from the hand of their oppressors' and I save every person 'from the hand of one stronger than he.' And so [too], do not afflict the widow and the orphan, since I hear their cries. As all of these do not rely on themselves and [so] upon Me do they rely. And in a different verse, it adds another reason (Exodus 23:9), "For you know the feelings of the stranger, since you were strangers in the land of Egypt." This is to say, you know that any stranger has low self esteem, and he sighs and cries, and his eyes are always to God - and He will have mercy upon him, as He had mercy upon you, as it is written (Exodus 2:23), "and the Children of Israel sighed from the work and they cried out, and their prayer ascended to God, from the work." This is to say that not because of their merit [did God hear], but rather He had mercy upon them due to their [heavy] work.

(ט) וְגֵ֖ר לֹ֣א תִלְחָ֑ץ וְאַתֶּ֗ם יְדַעְתֶּם֙ אֶת־נֶ֣פֶשׁ הַגֵּ֔ר כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֥רֶץ מִצְרָֽיִם׃
(9) You shall not oppress a stranger, for you know the feelings of the stranger, having yourselves been strangers in the land of Egypt.
(ט) וגר לא תלחץ להטות דינו. ולמעלה הזהיר עליו אפילו שלא בשעת הדין סמכו כאן לפי שאין לו גואלים וקל ונוח הוא ללחצו ולעוותו בדין.

Hezekiah ben Manoah (c.1250-1310)

(9) וגר לא תלחץ, “and do not oppress the stranger.” Here too the Torah speaks about the treatment strangers may have to endure at court. In the earlier reference to the stranger, (22,2), the Torah referred to how we are not to treat the stranger in every day life, not particularly when he is involved in litigation. It is repeated here as he is also one of the sections of society that is likely to be taken advantage of, as they have no one to stand up on their behalf; It is easy to get away with taking advantage of them.

(יא) שְׁמָ֨ר־לְךָ֔ אֵ֛ת אֲשֶׁ֥ר אָנֹכִ֖י מְצַוְּךָ֣ הַיּ֑וֹם הִנְנִ֧י גֹרֵ֣שׁ מִפָּנֶ֗יךָ אֶת־הָאֱמֹרִי֙ וְהַֽכְּנַעֲנִ֔י וְהַחִתִּי֙ וְהַפְּרִזִּ֔י וְהַחִוִּ֖י וְהַיְבוּסִֽי׃

(11) Mark well what I command you this day. I will drive out before you the Amorites, the Canaanites, the Hittites, the Perizzites, the Hivites, and the Jebusites.

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

(1) A war is never waged against anyone before peace is offered. This applies both to an obligatory war and to a permitted war, as it is written “when you get near a city to wage war against it, you must offer peace” (Deut. 20:10). If they agree and accept upon themselves the seven mitzvot given to the children of Noah, not a single soul is to be harmed…

(י) וְכֵן צִוָּה משֶׁה רַבֵּנוּ מִפִּי הַגְּבוּרָה לָכֹף אֶת כָּל בָּאֵי הָעוֹלָם לְקַבֵּל מִצְוֹת שֶׁנִּצְטַוּוּ בְּנֵי נֹחַ. וְכָל מִי שֶׁלֹּא יְקַבֵּל יֵהָרֵג. וְהַמְקַבֵּל אוֹתָם הוּא הַנִּקְרָא גֵּר תּוֹשָׁב בְּכָל מָקוֹם.

And Moses was also commanded by G-d to force the nations to accept the Noahide Laws. Anyone who refused to accept them was to be killed. Those who did accept them are called "resident aliens" throughout.

(ד) לֹֽא־יָבֹ֧א עַמּוֹנִ֛י וּמוֹאָבִ֖י בִּקְהַ֣ל ה' גַּ֚ם דּ֣וֹר עֲשִׂירִ֔י לֹא־יָבֹ֥א לָהֶ֛ם בִּקְהַ֥ל ה' עַד־עוֹלָֽם׃ (ה) עַל־דְּבַ֞ר אֲשֶׁ֨ר לֹא־קִדְּמ֤וּ אֶתְכֶם֙ בַּלֶּ֣חֶם וּבַמַּ֔יִם בַּדֶּ֖רֶךְ בְּצֵאתְכֶ֣ם מִמִּצְרָ֑יִם וַאֲשֶׁר֩ שָׂכַ֨ר עָלֶ֜יךָ אֶת־בִּלְעָ֣ם בֶּן־בְּע֗וֹר מִפְּת֛וֹר אֲרַ֥ם נַהֲרַ֖יִם לְקַֽלְלֶֽךָּ׃ (ו) וְלֹֽא־אָבָ֞ה ה' אֱלֹקֶ֙יךָ֙ לִשְׁמֹ֣עַ אֶל־בִּלְעָ֔ם וַיַּהֲפֹךְ֩ ה' אֱלֹקֶ֧יךָ לְּךָ֛ אֶת־הַקְּלָלָ֖ה לִבְרָכָ֑ה כִּ֥י אֲהֵֽבְךָ֖ ה' אֱלֹהֶֽיךָ׃ (ז) לֹא־תִדְרֹ֥שׁ שְׁלֹמָ֖ם וְטֹבָתָ֑ם כָּל־יָמֶ֖יךָ לְעוֹלָֽם׃ (ס) (ח) לֹֽא־תְתַעֵ֣ב אֲדֹמִ֔י כִּ֥י אָחִ֖יךָ ה֑וּא (ס) לֹא־תְתַעֵ֣ב מִצְרִ֔י כִּי־גֵ֖ר הָיִ֥יתָ בְאַרְצֽוֹ׃

(4) No Ammonite or Moabite shall be admitted into the congregation of the LORD; none of their descendants, even in the tenth generation, shall ever be admitted into the congregation of the LORD, (5) because they did not meet you with food and water on your journey after you left Egypt, and because they hired Balaam son of Beor, from Pethor of Aram-naharaim, to curse you.— (6) But the LORD your God refused to heed Balaam; instead, the LORD your God turned the curse into a blessing for you, for the LORD your God loves you.— (7) You shall never concern yourself with their welfare or benefit as long as you live. (8) You shall not abhor an Edomite, for he is your relative. You shall not abhor an Egyptian, for you were a stranger in his land.

(ה) על דבר אשר לא קדמו אתכם בלחם ובמים. דרך ארץ הוא לקדם את הבאים בדרך במאכל ובמשתה, לא שהיו ישראל חסרים במדבר, שהרי המן יורד להם והבאר הולך עמהם.

Bahya ben Asher ibn Halawa (1340 – 1255)

(5) It is common courtesy to welcome newcomers with food and drink; not that the Israelites had any needs in the desert--they had Manna falling [from heaven] for them and a well that traveled with them.

(ח) כי אחיך הוא. רצה הקב״ה להרגיל את ישראל במעלת הנפש. וכל שהנפש גבוה יותר מקרב את קרוביו. ע״כ צוה אותו לזכור אחוה לבני אדום:

Naftali Zvi Yehuda Berlin (1816-1893)

For [the Edomite] is your relative. G-d wanted to accustom Israel to the virtues of a sensitive soul. And the higher the soul, the more he brings his relatives closer. This is why he commanded him to remember the brotherhood of the Edomites.

(ח) כי גר היית בארצו. גם זה מתכונת הנפש המעלה לגמול טובה ולא להיות כפוי טובה ונקרא נבל. ע״כ הרגיל הקב״ה אותנו במצוה זו:

Because you were a stranger in [the Egyptian's] land. This, too, is the form of the sensitive soul that repays good and is never ungrateful or ever called a scoundrel. This is why the Al-mighty accustomed us in this mitzva:

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

Do not despise the Edomite... Even though you ought to despise him, because he went out with the sword for you; and the Egyptians also, even though they drowned your male [children] in the Nile, do not detest them, because they provided you a lodging in an hour of distress and fled to them in the days of famine and were treated with great honor.... And it is said of both of them, "Thou shalt not detest," the Edomite that met them with the sword, and the Egyptians that drown them in the water, whereas with Ammon and Moab, the sin made them loathsome, and Scripture says, "Do not inquire for their well-bring or their good."