Save "עמי הארץ
"
עמי הארץ
Preface: the reputation of the עמי הארץ, and remaining separate from their influence

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

(18) The sons of Noah who came out of the ark were Shem, Ham, and Japheth—Ham being the father of Canaan. (19) These three were the sons of Noah, and from these the whole world branched out. (20) Noah, the tiller of the soil, was the first to plant a vineyard. (21) He drank of the wine and became drunk, and he uncovered himself within his tent. (22) Ham, the father of Canaan, saw his father’s nakedness and told his two brothers outside. (23) But Shem and Japheth took a cloth, placed it against both their backs and, walking backward, they covered their father’s nakedness; their faces were turned the other way, so that they did not see their father’s nakedness. (24) When Noah woke up from his wine and learned what his youngest son had done to him, (25) he said, “Cursed be Canaan; The lowest of slaves Shall he be to his brothers.” (26) And he said, “Blessed be the LORD, The God of Shem; Let Canaan be a slave to them. (27) May God enlarge Japheth, And let him dwell in the tents of Shem; And let Canaan be a slave to them.”
(א) וְאַבְרָהָ֣ם זָקֵ֔ן בָּ֖א בַּיָּמִ֑ים וַֽה' בֵּרַ֥ךְ אֶת־אַבְרָהָ֖ם בַּכֹּֽל׃ (ב) וַיֹּ֣אמֶר אַבְרָהָ֗ם אֶל־עַבְדּוֹ֙ זְקַ֣ן בֵּית֔וֹ הַמֹּשֵׁ֖ל בְּכָל־אֲשֶׁר־ל֑וֹ שִֽׂים־נָ֥א יָדְךָ֖ תַּ֥חַת יְרֵכִֽי׃ (ג) וְאַשְׁבִּ֣יעֲךָ֔ בַּֽה' אֱלֹקֵ֣י הַשָּׁמַ֔יִם וֵֽאלֹקֵ֖י הָאָ֑רֶץ אֲשֶׁ֨ר לֹֽא־תִקַּ֤ח אִשָּׁה֙ לִבְנִ֔י מִבְּנוֹת֙ הַֽכְּנַעֲנִ֔י אֲשֶׁ֥ר אָנֹכִ֖י יוֹשֵׁ֥ב בְּקִרְבּֽוֹ׃ (ד) כִּ֧י אֶל־אַרְצִ֛י וְאֶל־מוֹלַדְתִּ֖י תֵּלֵ֑ךְ וְלָקַחְתָּ֥ אִשָּׁ֖ה לִבְנִ֥י לְיִצְחָֽק׃
(1) Abraham was now old, advanced in years, and the LORD had blessed Abraham in all things. (2) And Abraham said to the senior servant of his household, who had charge of all that he owned, “Put your hand under my thigh (3) and I will make you swear by the LORD, the God of heaven and the God of the earth, that you will not take a wife for my son from the daughters of the Canaanites among whom I dwell, (4) but will go to the land of my birth and get a wife for my son Isaac.”

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

(1) אשר אנכי יושב בקרבו, "among whom I dwell." Abraham countered Eliezer's assumption that inasmuch as the very proximity of Abraham causes one to be included in the blessing G'd promised to Abraham this did not mean that one's basic status of being cursed (as a result of Noach's curse) had been revoked. Abraham also wanted to dispel the notion that his presence and his status among such people as Aner, Eshkol and Mamre would become endangered if he did not take a wife for Isaac from their families.

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

(1) Among whom I live. If Yitzchok lived near his wife’s family, either in Canaan or in Charan, he would be subject to their influence. But if he married a woman from Charan and they lived in Canaan he would not be influenced by them.

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

(46) Rebekah said to Isaac, “I am disgusted with my life because of the Hittite women. If Jacob marries a Hittite woman like these, from among the native women, what good will life be to me?” (1) So Isaac sent for Jacob and blessed him. He instructed him, saying, “You shall not take a wife from among the Canaanite women. (2) Up, go to Paddan-aram, to the house of Bethuel, your mother’s father, and take a wife there from among the daughters of Laban, your mother’s brother, (3) May El Shaddai bless you, make you fertile and numerous, so that you become an assembly of peoples. (4) May He grant the blessing of Abraham to you and your offspring, that you may possess the land where you are sojourning, which God assigned to Abraham.” (5) Then Isaac sent Jacob off, and he went to Paddan-aram, to Laban the son of Bethuel the Aramean, the brother of Rebekah, mother of Jacob and Esau. (6) When Esau saw that Isaac had blessed Jacob and sent him off to Paddan-aram to take a wife from there, charging him, as he blessed him, “You shall not take a wife from among the Canaanite women,” (7) and that Jacob had obeyed his father and mother and gone to Paddan-aram, (8) Esau realized that the Canaanite women displeased his father Isaac. (9) So Esau went to Ishmael and took to wife, in addition to the wives he had, Mahalath the daughter of Ishmael son of Abraham, sister of Nebaioth.
Yaakov's children intermarrying with the עמי הארץ?
(א) וַֽיְהִי֙ בָּעֵ֣ת הַהִ֔וא וַיֵּ֥רֶד יְהוּדָ֖ה מֵאֵ֣ת אֶחָ֑יו וַיֵּ֛ט עַד־אִ֥ישׁ עֲדֻלָּמִ֖י וּשְׁמ֥וֹ חִירָֽה׃ (ב) וַיַּרְא־שָׁ֧ם יְהוּדָ֛ה בַּת־אִ֥ישׁ כְּנַעֲנִ֖י וּשְׁמ֣וֹ שׁ֑וּעַ וַיִּקָּחֶ֖הָ וַיָּבֹ֥א אֵלֶֽיהָ׃ (ג) וַתַּ֖הַר וַתֵּ֣לֶד בֵּ֑ן וַיִּקְרָ֥א אֶת־שְׁמ֖וֹ עֵֽר׃ (ד) וַתַּ֥הַר ע֖וֹד וַתֵּ֣לֶד בֵּ֑ן וַתִּקְרָ֥א אֶת־שְׁמ֖וֹ אוֹנָֽן׃ (ה) וַתֹּ֤סֶף עוֹד֙ וַתֵּ֣לֶד בֵּ֔ן וַתִּקְרָ֥א אֶת־שְׁמ֖וֹ שֵׁלָ֑ה וְהָיָ֥ה בִכְזִ֖יב בְּלִדְתָּ֥הּ אֹתֽוֹ׃
(1) About that time Judah left his brothers and camped near a certain Adullamite whose name was Hirah. (2) There Judah saw the daughter of a certain Canaanite whose name was Shua, and he married her and cohabited with her. (3) She conceived and bore a son, and he named him Er. (4) She conceived again and bore a son, and named him Onan. (5) Once again she bore a son, and named him Shelah; he was at Chezib when she bore him.
וּכְנַעֲנִי מְנָלַן דְּאִיקְּרִי תַּגָּר דִּכְתִיב וַיַּרְא שָׁם יְהוּדָה בַּת אִישׁ כְּנַעֲנִי מַאי כְּנַעֲנִי אִילֵּימָא כְּנַעֲנִי מַמָּשׁ אֶפְשָׁר בָּא אַבְרָהָם וְהִזְהִיר אֶת יִצְחָק בָּא יִצְחָק וְהִזְהִיר אֶת יַעֲקֹב וִיהוּדָה אָזֵיל וְנָסֵיב אֶלָּא אָמַר רַבִּי שִׁמְעוֹן בֶּן לָקִישׁ בַּת גַּבְרָא תַּגָּרָא דִּכְתִיב כְּנַעַן בְּיָדוֹ מֹאזְנֵי מִרְמָה וְאִיבָּעֵית אֵימָא מֵהָכָא אֲשֶׁר סוֹחֲרֶיהָ שָׂרִים כִּנְעָנֶיהָ נִכְבַּדֵּי אָרֶץ
And from where do we derive that a merchant can be called a kena’ani? As it is written: “And Judah saw there the daughter of a certain kena’aniand he took her, and went in unto her” (Genesis 38:2). What is the meaning of the word kena’ani in this context? If you say it refers to an actual Canaanite, is it possible that Abraham warned Isaac not to marry a Canaanite woman, and Isaac warned Jacob to the same effect, and nonetheless Judah went and married a Canaanite woman? Rather, Rabbi Shimon ben Lakish said: She was the daughter of a merchant, as it is written: “As for the merchant [kena’an], the balances of deceit are in his hand. He loves to oppress” (Hosea 12:8). And if you wish, say instead that this meaning of the word can be understood from the following verse, which describes Tyre: “Whose traders are princes, whose merchants [kinaneha] are the honorable of the earth” (Isaiah 23:8).
(י) וּבְנֵ֣י שִׁמְע֗וֹן יְמוּאֵ֧ל וְיָמִ֛ין וְאֹ֖הַד וְיָכִ֣ין וְצֹ֑חַר וְשָׁא֖וּל בֶּן־הַֽכְּנַעֲנִֽית׃
(10) Simeon’s sons: Jemuel, Jamin, Ohad, Jachin, Zohar, and Saul the son of a Canaanite woman.
(א) בן הכנענית. בֶּן דִּינָה שֶׁנִּבְעֲלָה לִכְנַעֲנִי; כְשֶׁהָרְגוּ אֶת שְׁכֶם לֹא הָיְתָה דִּינָה רוֹצָה לָצֵאת עַד שֶׁנִּשְׁבַּע לָהּ שִׁמְעוֹן שֶׁיִּשָּׂאֶנָּה (בראשית רבה):
(1) בן הכנענית THE SON OF THE CANAANITISH WOMAN — means the son of Dinah, who had been associated with a Canaanite (Shechem). When they (her brothers) had killed Shechem, Dinah refused to leave the city until Simeon swore to her that he would marry her and regard the child she was about to bear as his own (cf. Genesis Rabbah 80:11).

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

(1) בן הכנענית, “the son of a Canaanite woman.” This verse testifies to the fact that the respective wives of Yaakov’s sons were of Egyptian, Edomitic, and Midianite descent; the reason that this particular son of Shimon has been singled out as having been born of a Canaanite mother, is that his father is criticised for having married a Canaanite woman, something that had not been considered appropriate already since Avraham’s time.

The אבות and the עמי הארץ: remaining distinct, while keeping amicable and fair relationships with them, in a period of not being in control of ארץ ישראל
(ח) וַיֵּצֵ֨א מֶֽלֶךְ־סְדֹ֜ם וּמֶ֣לֶךְ עֲמֹרָ֗ה וּמֶ֤לֶךְ אַדְמָה֙ וּמֶ֣לֶךְ צביים [צְבוֹיִ֔ם] וּמֶ֥לֶךְ בֶּ֖לַע הִוא־צֹ֑עַר וַיַּֽעַרְכ֤וּ אִתָּם֙ מִלְחָמָ֔ה בְּעֵ֖מֶק הַשִּׂדִּֽים׃ (ט) אֵ֣ת כְּדָרְלָעֹ֜מֶר מֶ֣לֶךְ עֵילָ֗ם וְתִדְעָל֙ מֶ֣לֶךְ גּוֹיִ֔ם וְאַמְרָפֶל֙ מֶ֣לֶךְ שִׁנְעָ֔ר וְאַרְי֖וֹךְ מֶ֣לֶךְ אֶלָּסָ֑ר אַרְבָּעָ֥ה מְלָכִ֖ים אֶת־הַחֲמִשָּֽׁה׃ (י) וְעֵ֣מֶק הַשִׂדִּ֗ים בֶּֽאֱרֹ֤ת בֶּאֱרֹת֙ חֵמָ֔ר וַיָּנֻ֛סוּ מֶֽלֶךְ־סְדֹ֥ם וַעֲמֹרָ֖ה וַיִּפְּלוּ־שָׁ֑מָּה וְהַנִּשְׁאָרִ֖ים הֶ֥רָה נָּֽסוּ׃ (יא) וַ֠יִּקְחוּ אֶת־כָּל־רְכֻ֨שׁ סְדֹ֧ם וַעֲמֹרָ֛ה וְאֶת־כָּל־אָכְלָ֖ם וַיֵּלֵֽכוּ׃ (יב) וַיִּקְח֨וּ אֶת־ל֧וֹט וְאֶת־רְכֻשׁ֛וֹ בֶּן־אֲחִ֥י אַבְרָ֖ם וַיֵּלֵ֑כוּ וְה֥וּא יֹשֵׁ֖ב בִּסְדֹֽם׃ (יג) וַיָּבֹא֙ הַפָּלִ֔יט וַיַּגֵּ֖ד לְאַבְרָ֣ם הָעִבְרִ֑י וְהוּא֩ שֹׁכֵ֨ן בְּאֵֽלֹנֵ֜י מַמְרֵ֣א הָאֱמֹרִ֗י אֲחִ֤י אֶשְׁכֹּל֙ וַאֲחִ֣י עָנֵ֔ר וְהֵ֖ם בַּעֲלֵ֥י בְרִית־אַבְרָֽם׃ (יד) וַיִּשְׁמַ֣ע אַבְרָ֔ם כִּ֥י נִשְׁבָּ֖ה אָחִ֑יו וַיָּ֨רֶק אֶת־חֲנִיכָ֜יו יְלִידֵ֣י בֵית֗וֹ שְׁמֹנָ֤ה עָשָׂר֙ וּשְׁלֹ֣שׁ מֵא֔וֹת וַיִּרְדֹּ֖ף עַד־דָּֽן׃ (טו) וַיֵּחָלֵ֨ק עֲלֵיהֶ֧ם ׀ לַ֛יְלָה ה֥וּא וַעֲבָדָ֖יו וַיַּכֵּ֑ם וַֽיִּרְדְּפֵם֙ עַד־חוֹבָ֔ה אֲשֶׁ֥ר מִשְּׂמֹ֖אל לְדַמָּֽשֶׂק׃ (טז) וַיָּ֕שֶׁב אֵ֖ת כָּל־הָרְכֻ֑שׁ וְגַם֩ אֶת־ל֨וֹט אָחִ֤יו וּרְכֻשׁוֹ֙ הֵשִׁ֔יב וְגַ֥ם אֶת־הַנָּשִׁ֖ים וְאֶת־הָעָֽם׃ (יז) וַיֵּצֵ֣א מֶֽלֶךְ־סְדֹם֮ לִקְרָאתוֹ֒ אַחֲרֵ֣י שׁוּב֗וֹ מֵֽהַכּוֹת֙ אֶת־כְּדָרלָעֹ֔מֶר וְאֶת־הַמְּלָכִ֖ים אֲשֶׁ֣ר אִתּ֑וֹ אֶל־עֵ֣מֶק שָׁוֵ֔ה ה֖וּא עֵ֥מֶק הַמֶּֽלֶךְ׃ (יח) וּמַלְכִּי־צֶ֙דֶק֙ מֶ֣לֶךְ שָׁלֵ֔ם הוֹצִ֖יא לֶ֣חֶם וָיָ֑יִן וְה֥וּא כֹהֵ֖ן לְאֵ֥ל עֶלְיֽוֹן׃ (יט) וַֽיְבָרְכֵ֖הוּ וַיֹּאמַ֑ר בָּר֤וּךְ אַבְרָם֙ לְאֵ֣ל עֶלְי֔וֹן קֹנֵ֖ה שָׁמַ֥יִם וָאָֽרֶץ׃ (כ) וּבָרוּךְ֙ אֵ֣ל עֶלְי֔וֹן אֲשֶׁר־מִגֵּ֥ן צָרֶ֖יךָ בְּיָדֶ֑ךָ וַיִּתֶּן־ל֥וֹ מַעֲשֵׂ֖ר מִכֹּֽל׃ (כא) וַיֹּ֥אמֶר מֶֽלֶךְ־סְדֹ֖ם אֶל־אַבְרָ֑ם תֶּן־לִ֣י הַנֶּ֔פֶשׁ וְהָרְכֻ֖שׁ קַֽח־לָֽךְ׃ (כב) וַיֹּ֥אמֶר אַבְרָ֖ם אֶל־מֶ֣לֶךְ סְדֹ֑ם הֲרִימֹ֨תִי יָדִ֤י אֶל־ה' אֵ֣ל עֶלְי֔וֹן קֹנֵ֖ה שָׁמַ֥יִם וָאָֽרֶץ׃ (כג) אִם־מִחוּט֙ וְעַ֣ד שְׂרֽוֹךְ־נַ֔עַל וְאִם־אֶקַּ֖ח מִכָּל־אֲשֶׁר־לָ֑ךְ וְלֹ֣א תֹאמַ֔ר אֲנִ֖י הֶעֱשַׁ֥רְתִּי אֶת־אַבְרָֽם׃ (כד) בִּלְעָדַ֗י רַ֚ק אֲשֶׁ֣ר אָֽכְל֣וּ הַנְּעָרִ֔ים וְחֵ֙לֶק֙ הָֽאֲנָשִׁ֔ים אֲשֶׁ֥ר הָלְכ֖וּ אִתִּ֑י עָנֵר֙ אֶשְׁכֹּ֣ל וּמַמְרֵ֔א הֵ֖ם יִקְח֥וּ חֶלְקָֽם׃ (ס)

(8) Then the king of Sodom, the king of Gomorrah, the king of Admah, the king of Zeboiim, and the king of Bela, which is Zoar, went forth and engaged them in battle in the Valley of Siddim: (9) King Chedorlaomer of Elam, King Tidal of Goiim, King Amraphel of Shinar, and King Arioch of Ellasar—four kings against those five. (10) Now the Valley of Siddim was dotted with bitumen pits; and the kings of Sodom and Gomorrah, in their flight, threw themselves into them, while the rest escaped to the hill country. (11) [The invaders] seized all the wealth of Sodom and Gomorrah and all their provisions, and went their way. (12) They also took Lot, the son of Abram’s brother, and his possessions, and departed; for he had settled in Sodom. (13) A fugitive brought the news to Abram the Hebrew, who was dwelling at the terebinths of Mamre the Amorite, kinsman of Eshkol and Aner, these being Abram’s allies. (14) When Abram heard that his kinsman had been taken captive, he mustered his retainers, born into his household, numbering three hundred and eighteen, and went in pursuit as far as Dan. (15) At night, he and his servants deployed against them and defeated them; and he pursued them as far as Hobah, which is north of Damascus. (16) He brought back all the possessions; he also brought back his kinsman Lot and his possessions, and the women and the rest of the people. (17) When he returned from defeating Chedorlaomer and the kings with him, the king of Sodom came out to meet him in the Valley of Shaveh, which is the Valley of the King. (18) And King Melchizedek of Salem brought out bread and wine; he was a priest of God Most High. (19) He blessed him, saying, “Blessed be Abram of God Most High, Creator of heaven and earth. (20) And blessed be God Most High, Who has delivered your foes into your hand.” And [Abram] gave him a tenth of everything. (21) Then the king of Sodom said to Abram, “Give me the persons, and take the possessions for yourself.” (22) But Abram said to the king of Sodom, “I swear to the LORD, God Most High, Creator of heaven and earth: (23) I will not take so much as a thread or a sandal strap of what is yours; you shall not say, ‘It is I who made Abram rich.’ (24) For me, nothing but what my servants have used up; as for the share of the men who went with me—Aner, Eshkol, and Mamre—let them take their share.”

(ג) וַיָּ֙קָם֙ אַבְרָהָ֔ם מֵעַ֖ל פְּנֵ֣י מֵת֑וֹ וַיְדַבֵּ֥ר אֶל־בְּנֵי־חֵ֖ת לֵאמֹֽר׃ (ד) גֵּר־וְתוֹשָׁ֥ב אָנֹכִ֖י עִמָּכֶ֑ם תְּנ֨וּ לִ֤י אֲחֻזַּת־קֶ֙בֶר֙ עִמָּכֶ֔ם וְאֶקְבְּרָ֥ה מֵתִ֖י מִלְּפָנָֽי׃ (ה) וַיַּעֲנ֧וּ בְנֵי־חֵ֛ת אֶת־אַבְרָהָ֖ם לֵאמֹ֥ר לֽוֹ׃ (ו) שְׁמָעֵ֣נוּ ׀ אֲדֹנִ֗י נְשִׂ֨יא אֱלֹקִ֤ים אַתָּה֙ בְּתוֹכֵ֔נוּ בְּמִבְחַ֣ר קְבָרֵ֔ינוּ קְבֹ֖ר אֶת־מֵתֶ֑ךָ אִ֣ישׁ מִמֶּ֔נּוּ אֶת־קִבְר֛וֹ לֹֽא־יִכְלֶ֥ה מִמְּךָ֖ מִקְּבֹ֥ר מֵתֶֽךָ׃ (ז) וַיָּ֧קָם אַבְרָהָ֛ם וַיִּשְׁתַּ֥חוּ לְעַם־הָאָ֖רֶץ לִבְנֵי־חֵֽת׃ (ח) וַיְדַבֵּ֥ר אִתָּ֖ם לֵאמֹ֑ר אִם־יֵ֣שׁ אֶֽת־נַפְשְׁכֶ֗ם לִקְבֹּ֤ר אֶת־מֵתִי֙ מִלְּפָנַ֔י שְׁמָע֕וּנִי וּפִגְעוּ־לִ֖י בְּעֶפְר֥וֹן בֶּן־צֹֽחַר׃ (ט) וְיִתֶּן־לִ֗י אֶת־מְעָרַ֤ת הַמַּכְפֵּלָה֙ אֲשֶׁר־ל֔וֹ אֲשֶׁ֖ר בִּקְצֵ֣ה שָׂדֵ֑הוּ בְּכֶ֨סֶף מָלֵ֜א יִתְּנֶ֥נָּה לִ֛י בְּתוֹכְכֶ֖ם לַאֲחֻזַּת־קָֽבֶר׃ (י) וְעֶפְר֥וֹן יֹשֵׁ֖ב בְּת֣וֹךְ בְּנֵי־חֵ֑ת וַיַּעַן֩ עֶפְר֨וֹן הַחִתִּ֤י אֶת־אַבְרָהָם֙ בְּאָזְנֵ֣י בְנֵי־חֵ֔ת לְכֹ֛ל בָּאֵ֥י שַֽׁעַר־עִיר֖וֹ לֵאמֹֽר׃ (יא) לֹֽא־אֲדֹנִ֣י שְׁמָעֵ֔נִי הַשָּׂדֶה֙ נָתַ֣תִּי לָ֔ךְ וְהַמְּעָרָ֥ה אֲשֶׁר־בּ֖וֹ לְךָ֣ נְתַתִּ֑יהָ לְעֵינֵ֧י בְנֵי־עַמִּ֛י נְתַתִּ֥יהָ לָּ֖ךְ קְבֹ֥ר מֵתֶֽךָ׃ (יב) וַיִּשְׁתַּ֙חוּ֙ אַבְרָהָ֔ם לִפְנֵ֖י עַ֥ם הָאָֽרֶץ׃ (יג) וַיְדַבֵּ֨ר אֶל־עֶפְר֜וֹן בְּאָזְנֵ֤י עַם־הָאָ֙רֶץ֙ לֵאמֹ֔ר אַ֛ךְ אִם־אַתָּ֥ה ל֖וּ שְׁמָעֵ֑נִי נָתַ֜תִּי כֶּ֤סֶף הַשָּׂדֶה֙ קַ֣ח מִמֶּ֔נִּי וְאֶקְבְּרָ֥ה אֶת־מֵתִ֖י שָֽׁמָּה׃ (יד) וַיַּ֧עַן עֶפְר֛וֹן אֶת־אַבְרָהָ֖ם לֵאמֹ֥ר לֽוֹ׃ (טו) אֲדֹנִ֣י שְׁמָעֵ֔נִי אֶרֶץ֩ אַרְבַּ֨ע מֵאֹ֧ת שֶֽׁקֶל־כֶּ֛סֶף בֵּינִ֥י וּבֵֽינְךָ֖ מַה־הִ֑וא וְאֶת־מֵתְךָ֖ קְבֹֽר׃ (טז) וַיִּשְׁמַ֣ע אַבְרָהָם֮ אֶל־עֶפְרוֹן֒ וַיִּשְׁקֹ֤ל אַבְרָהָם֙ לְעֶפְרֹ֔ן אֶת־הַכֶּ֕סֶף אֲשֶׁ֥ר דִּבֶּ֖ר בְּאָזְנֵ֣י בְנֵי־חֵ֑ת אַרְבַּ֤ע מֵאוֹת֙ שֶׁ֣קֶל כֶּ֔סֶף עֹבֵ֖ר לַסֹּחֵֽר׃
(3) Then Abraham rose from beside his dead, and spoke to the Hittites, saying, (4) “I am a resident alien among you; sell me a burial site among you, that I may remove my dead for burial.” (5) And the Hittites replied to Abraham, saying to him, (6) “Hear us, my lord: you are the elect of God among us. Bury your dead in the choicest of our burial places; none of us will withhold his burial place from you for burying your dead.” (7) Thereupon Abraham bowed low to the people of the land, the Hittites, (8) and he said to them, “If it is your wish that I remove my dead for burial, you must agree to intercede for me with Ephron son of Zohar. (9) Let him sell me the cave of Machpelah that he owns, which is at the edge of his land. Let him sell it to me, at the full price, for a burial site in your midst.” (10) Ephron was present among the Hittites; so Ephron the Hittite answered Abraham in the hearing of the Hittites, all who entered the gate of his town, saying, (11) “No, my lord, hear me: I give you the field and I give you the cave that is in it; I give it to you in the presence of my people. Bury your dead.” (12) Then Abraham bowed low before the people of the land, (13) and spoke to Ephron in the hearing of the people of the land, saying, “If only you would hear me out! Let me pay the price of the land; accept it from me, that I may bury my dead there.” (14) And Ephron replied to Abraham, saying to him, (15) “My lord, do hear me! A piece of land worth four hundred shekels of silver—what is that between you and me? Go and bury your dead.” (16) Abraham accepted Ephron’s terms. Abraham paid out to Ephron the money that he had named in the hearing of the Hittites—four hundred shekels of silver at the going merchants’ rate.
(ל) וַיֹּ֨אמֶר יַעֲקֹ֜ב אֶל־שִׁמְע֣וֹן וְאֶל־לֵוִי֮ עֲכַרְתֶּ֣ם אֹתִי֒ לְהַבְאִישֵׁ֙נִי֙ בְּיֹשֵׁ֣ב הָאָ֔רֶץ בַּֽכְּנַעֲנִ֖י וּבַפְּרִזִּ֑י וַאֲנִי֙ מְתֵ֣י מִסְפָּ֔ר וְנֶאֶסְפ֤וּ עָלַי֙ וְהִכּ֔וּנִי וְנִשְׁמַדְתִּ֖י אֲנִ֥י וּבֵיתִֽי׃
(30) Jacob said to Simeon and Levi, “You have brought trouble on me, making me odious among the inhabitants of the land, the Canaanites and the Perizzites; my men are few in number, so that if they unite against me and attack me, I and my house will be destroyed.”
The אבות strain to emphasize that עם ישראל's destiny is from God, completely unrelated to the עמי הארץ-- the אבות acted as a distinct entity and only dealt with them in fairness, not allowing their success and connection to the land be based on the generosity of the עמי הארץ
(א) מבנות הכנעני פן יאמרו עלי ע״‎י ירושה ומתנה נכנס הוא לארץ לפיכך איני רוצה אלא ע״‎י הקב״‎ה שיתננה לי בחזקה.
(1) מבנות הכנעני, “from among the daughters of the Canaanite nation.” Avraham did not want that in the future anyone could claim that his claim on the Holy Land was based on intermarriage with the previous owners of that land. It had to be established beyond any shadow of a doubt that the Israelites’ claim to the land was based on G-d having promised it to their founding father, and that He used His Power to do this on their behalf.
(כג) אִם־מִחוּט֙ וְעַ֣ד שְׂרֽוֹךְ־נַ֔עַל וְאִם־אֶקַּ֖ח מִכָּל־אֲשֶׁר־לָ֑ךְ וְלֹ֣א תֹאמַ֔ר אֲנִ֖י הֶעֱשַׁ֥רְתִּי אֶת־אַבְרָֽם׃
(23) I will not take so much as a thread or a sandal strap of what is yours; you shall not say, ‘It is I who made Abram rich.’

(ד) גֵּר־וְתוֹשָׁ֥ב אָנֹכִ֖י עִמָּכֶ֑ם תְּנ֨וּ לִ֤י אֲחֻזַּת־קֶ֙בֶר֙ עִמָּכֶ֔ם וְאֶקְבְּרָ֥ה מֵתִ֖י מִלְּפָנָֽי׃

...

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

(4) “I am a resident alien among you; sell me a burial site among you, that I may remove my dead for burial.”

...

(11) “No, my lord, hear me: I give you the field and I give you the cave that is in it; I give it to you in the presence of my people. Bury your dead.” (12) Then Abraham bowed low before the people of the land, (13) and spoke to Ephron in the hearing of the people of the land, saying, “If only you would hear me out! Let me pay the price of the land; accept it from me, that I may bury my dead there.”

Can they ever share a destiny intertwined with בני ישראל? Only if they give up their Canaanite identity and become Jewish through and through, by converting.
(ח) וַיְדַבֵּ֥ר חֲמ֖וֹר אִתָּ֣ם לֵאמֹ֑ר שְׁכֶ֣ם בְּנִ֗י חָֽשְׁקָ֤ה נַפְשׁוֹ֙ בְּבִתְּכֶ֔ם תְּנ֨וּ נָ֥א אֹתָ֛הּ ל֖וֹ לְאִשָּֽׁה׃ (ט) וְהִֽתְחַתְּנ֖וּ אֹתָ֑נוּ בְּנֹֽתֵיכֶם֙ תִּתְּנוּ־לָ֔נוּ וְאֶת־בְּנֹתֵ֖ינוּ תִּקְח֥וּ לָכֶֽם׃ (י) וְאִתָּ֖נוּ תֵּשֵׁ֑בוּ וְהָאָ֙רֶץ֙ תִּהְיֶ֣ה לִפְנֵיכֶ֔ם שְׁבוּ֙ וּסְחָר֔וּהָ וְהֵֽאָחֲז֖וּ בָּֽהּ׃ (יא) וַיֹּ֤אמֶר שְׁכֶם֙ אֶל־אָבִ֣יה וְאֶל־אַחֶ֔יהָ אֶמְצָא־חֵ֖ן בְּעֵינֵיכֶ֑ם וַאֲשֶׁ֥ר תֹּאמְר֛וּ אֵלַ֖י אֶתֵּֽן׃ (יב) הַרְבּ֨וּ עָלַ֤י מְאֹד֙ מֹ֣הַר וּמַתָּ֔ן וְאֶ֨תְּנָ֔ה כַּאֲשֶׁ֥ר תֹּאמְר֖וּ אֵלָ֑י וּתְנוּ־לִ֥י אֶת־הַֽנַּעֲרָ֖ לְאִשָּֽׁה׃ (יג) וַיַּעֲנ֨וּ בְנֵֽי־יַעֲקֹ֜ב אֶת־שְׁכֶ֨ם וְאֶת־חֲמ֥וֹר אָבִ֛יו בְּמִרְמָ֖ה וַיְדַבֵּ֑רוּ אֲשֶׁ֣ר טִמֵּ֔א אֵ֖ת דִּינָ֥ה אֲחֹתָֽם׃ (יד) וַיֹּאמְר֣וּ אֲלֵיהֶ֗ם לֹ֤א נוּכַל֙ לַעֲשׂוֹת֙ הַדָּבָ֣ר הַזֶּ֔ה לָתֵת֙ אֶת־אֲחֹתֵ֔נוּ לְאִ֖ישׁ אֲשֶׁר־ל֣וֹ עָרְלָ֑ה כִּֽי־חֶרְפָּ֥ה הִ֖וא לָֽנוּ׃ (טו) אַךְ־בְּזֹ֖את נֵא֣וֹת לָכֶ֑ם אִ֚ם תִּהְי֣וּ כָמֹ֔נוּ לְהִמֹּ֥ל לָכֶ֖ם כָּל־זָכָֽר׃ (טז) וְנָתַ֤נּוּ אֶת־בְּנֹתֵ֙ינוּ֙ לָכֶ֔ם וְאֶת־בְּנֹתֵיכֶ֖ם נִֽקַּֽח־לָ֑נוּ וְיָשַׁ֣בְנוּ אִתְּכֶ֔ם וְהָיִ֖ינוּ לְעַ֥ם אֶחָֽד׃ (יז) וְאִם־לֹ֧א תִשְׁמְע֛וּ אֵלֵ֖ינוּ לְהִמּ֑וֹל וְלָקַ֥חְנוּ אֶת־בִּתֵּ֖נוּ וְהָלָֽכְנוּ׃

(8) And Hamor spoke with them, saying, “My son Shechem longs for your daughter. Please give her to him in marriage. (9) Intermarry with us: give your daughters to us, and take our daughters for yourselves: (10) You will dwell among us, and the land will be open before you; settle, move about, and acquire holdings in it.” (11) Then Shechem said to her father and brothers, “Do me this favor, and I will pay whatever you tell me. (12) Ask of me a bride-price ever so high, as well as gifts, and I will pay what you tell me; only give me the maiden for a wife.” (13) Jacob’s sons answered Shechem and his father Hamor—speaking with guile because he had defiled their sister Dinah— (14) and said to them, “We cannot do this thing, to give our sister to a man who is uncircumcised, for that is a disgrace among us. (15) Only on this condition will we agree with you; that you will become like us in that every male among you is circumcised. (16) Then we will give our daughters to you and take your daughters to ourselves; and we will dwell among you and become as one kindred. (17) But if you will not listen to us and become circumcised, we will take our daughter and go.”

1) How to deal with the presence of עמי הארץ and their control of the land
  • What is to be done with them in war
  • How their downfall will occur
  • How בנ״י should deal with them

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

(23) When My angel goes before you and brings you to the Amorites, the Hittites, the Perizzites, the Canaanites, the Hivites, and the Jebusites, and I annihilate them, (24) you shall not bow down to their gods in worship or follow their practices, but shall tear them down and smash their pillars to bits. (25) You shall serve the LORD your God, and He will bless your bread and your water. And I will remove sickness from your midst. (26) No woman in your land shall miscarry or be barren. I will let you enjoy the full count of your days. (27) I will send forth My terror before you, and I will throw into panic all the people among whom you come, and I will make all your enemies turn tail before you. (28) I will send a plague ahead of you, and it shall drive out before you the Hivites, the Canaanites, and the Hittites. (29) I will not drive them out before you in a single year, lest the land become desolate and the wild beasts multiply to your hurt. (30) I will drive them out before you little by little, until you have increased and possess the land. (31) I will set your borders from the Sea of Reeds to the Sea of Philistia, and from the wilderness to the Euphrates; for I will deliver the inhabitants of the land into your hands, and you will drive them out before you. (32) You shall make no covenant with them and their gods. (33) They shall not remain in your land, lest they cause you to sin against Me; for you will serve their gods—and it will prove a snare to you.

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

(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. (12) Beware of making a covenant with the inhabitants of the land against which you are advancing, lest they be a snare in your midst. (13) No, you must tear down their altars, smash their pillars, and cut down their sacred posts; (14) for you must not worship any other god, because the LORD, whose name is Impassioned, is an impassioned God. (15) You must not make a covenant with the inhabitants of the land, for they will lust after their gods and sacrifice to their gods and invite you, and you will eat of their sacrifices. (16) And when you take wives from among their daughters for your sons, their daughters will lust after their gods and will cause your sons to lust after their gods.

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

(1) When the LORD your God brings you to the land that you are about to enter and possess, and He dislodges many nations before you—the Hittites, Girgashites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites, seven nations much larger than you— (2) and the LORD your God delivers them to you and you defeat them, you must doom them to destruction: grant them no terms and give them no quarter. (3) You shall not intermarry with them: do not give your daughters to their sons or take their daughters for your sons. (4) For they will turn your children away from Me to worship other gods, and the LORD’s anger will blaze forth against you and He will promptly wipe you out. (5) Instead, this is what you shall do to them: you shall tear down their altars, smash their pillars, cut down their sacred posts, and consign their images to the fire. (6) For you are a people consecrated to the LORD your God: of all the peoples on earth the LORD your God chose you to be His treasured people.

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

(17) Should you say to yourselves, “These nations are more numerous than we; how can we dispossess them?” (18) You need have no fear of them. You have but to bear in mind what the LORD your God did to Pharaoh and all the Egyptians: (19) the wondrous acts that you saw with your own eyes, the signs and the portents, the mighty hand, and the outstretched arm by which the LORD your God liberated you. Thus will the LORD your God do to all the peoples you now fear. (20) The LORD your God will also send a plague against them, until those who are left in hiding perish before you. (21) Do not stand in dread of them, for the LORD your God is in your midst, a great and awesome God. (22) The LORD your God will dislodge those peoples before you little by little; you will not be able to put an end to them at once, else the wild beasts would multiply to your hurt. (23) The LORD your God will deliver them up to you, throwing them into utter panic until they are wiped out. (24) He will deliver their kings into your hand, and you shall obliterate their name from under the heavens; no man shall stand up to you, until you have wiped them out. (25) You shall consign the images of their gods to the fire; you shall not covet the silver and gold on them and keep it for yourselves, lest you be ensnared thereby; for that is abhorrent to the LORD your God. (26) You must not bring an abhorrent thing into your house, or you will be proscribed like it; you must reject it as abominable and abhorrent, for it is proscribed.

Is their presence to be tolerated at all? Under what circumstances?
(י) כִּֽי־תִקְרַ֣ב אֶל־עִ֔יר לְהִלָּחֵ֖ם עָלֶ֑יהָ וְקָרָ֥אתָ אֵלֶ֖יהָ לְשָׁלֽוֹם׃ (יא) וְהָיָה֙ אִם־שָׁל֣וֹם תַּֽעַנְךָ֔ וּפָתְחָ֖ה לָ֑ךְ וְהָיָ֞ה כָּל־הָעָ֣ם הַנִּמְצָא־בָ֗הּ יִהְי֥וּ לְךָ֛ לָמַ֖ס וַעֲבָדֽוּךָ׃ (יב) וְאִם־לֹ֤א תַשְׁלִים֙ עִמָּ֔ךְ וְעָשְׂתָ֥ה עִמְּךָ֖ מִלְחָמָ֑ה וְצַרְתָּ֖ עָלֶֽיהָּ׃ (יג) וּנְתָנָ֛הּ ה' אֱלֹקֶ֖יךָ בְּיָדֶ֑ךָ וְהִכִּיתָ֥ אֶת־כָּל־זְכוּרָ֖הּ לְפִי־חָֽרֶב׃ (יד) רַ֣ק הַ֠נָּשִׁים וְהַטַּ֨ף וְהַבְּהֵמָ֜ה וְכֹל֩ אֲשֶׁ֨ר יִהְיֶ֥ה בָעִ֛יר כָּל־שְׁלָלָ֖הּ תָּבֹ֣ז לָ֑ךְ וְאָֽכַלְתָּ֙ אֶת־שְׁלַ֣ל אֹיְבֶ֔יךָ אֲשֶׁ֥ר נָתַ֛ן ה' אֱלֹקֶ֖יךָ לָֽךְ׃ (טו) כֵּ֤ן תַּעֲשֶׂה֙ לְכָל־הֶ֣עָרִ֔ים הָרְחֹקֹ֥ת מִמְּךָ֖ מְאֹ֑ד אֲשֶׁ֛ר לֹא־מֵעָרֵ֥י הַגּֽוֹיִם־הָאֵ֖לֶּה הֵֽנָּה׃ (טז) רַ֗ק מֵעָרֵ֤י הָֽעַמִּים֙ הָאֵ֔לֶּה אֲשֶׁר֙ ה' אֱלֹקֶ֔יךָ נֹתֵ֥ן לְךָ֖ נַחֲלָ֑ה לֹ֥א תְחַיֶּ֖ה כָּל־נְשָׁמָֽה׃ (יז) כִּֽי־הַחֲרֵ֣ם תַּחֲרִימֵ֗ם הַחִתִּ֤י וְהָאֱמֹרִי֙ הַכְּנַעֲנִ֣י וְהַפְּרִזִּ֔י הַחִוִּ֖י וְהַיְבוּסִ֑י כַּאֲשֶׁ֥ר צִוְּךָ֖ ה' אֱלֹקֶֽיךָ׃ (יח) לְמַ֗עַן אֲשֶׁ֨ר לֹֽא־יְלַמְּד֤וּ אֶתְכֶם֙ לַעֲשׂ֔וֹת כְּכֹל֙ תּֽוֹעֲבֹתָ֔ם אֲשֶׁ֥ר עָשׂ֖וּ לֵֽאלֹהֵיהֶ֑ם וַחֲטָאתֶ֖ם לַה' אֱלֹקֵיכֶֽם׃ (ס)

(10) When you approach a town to attack it, you shall offer it terms of peace. (11) If it responds peaceably and lets you in, all the people present there shall serve you at forced labor. (12) If it does not surrender to you, but would join battle with you, you shall lay siege to it; (13) and when the LORD your God delivers it into your hand, you shall put all its males to the sword. (14) You may, however, take as your booty the women, the children, the livestock, and everything in the town—all its spoil—and enjoy the use of the spoil of your enemy, which the LORD your God gives you. (15) Thus you shall deal with all towns that lie very far from you, towns that do not belong to nations hereabout. (16) In the towns of the latter peoples, however, which the LORD your God is giving you as a heritage, you shall not let a soul remain alive. (17) No, you must proscribe them—the Hittites and the Amorites, the Canaanites and the Perizzites, the Hivites and the Jebusites—as the LORD your God has commanded you, (18) lest they lead you into doing all the abhorrent things that they have done for their gods and you stand guilty before the LORD your God.

(א) כי תקרב אל עיר. בְּמִלְחֶמֶת הָרְשׁוּת הַכָּתוּב מְדַבֵּר, כְּמוֹ שֶׁמְּפֹרָשׁ בָּעִנְיָן "כֵּן תַּעֲשֶׂה לְכָל הֶעָרִים הָרְחֹקֹת וְגוֹ'" (ספרי):
(1) כי תקרב אל עיר WHEN THOU APPROACHEST UNTO A CITY [TO FIGHT AGAINST IT] — Scripture is speaking of a war which is not obligatory upon them (as was the war against the seven nations of Canaan, referred to in v. 16), as it is distinctly stated in this section (v. 15) “Thus thou shalt do unto all the cities which are very far [from thee]” etc. (Sifrei Devarim 199:1).

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

(1) "When you approach a city to wage war upon it etc.": The verse speaks of an optional war, as explained in the topic (Deut. 20:15): "thus shall you do to all the cities that are very distant from you" - thus says Rashi. The Rabbi (Rashi) wrote this from the Sifrei (Shoftim 199), which teaches there in accordance with [Rashi's] expression, "the verse speaks of an optional war." But the intention of our Rabbis in this sentence [in the Sifrei] was only to say that the end of the portion distinguishes between the two [types of] wars. But [as far as] the calling out for peace [is concerned]: even in an obligatory war they are obligated to call out for peace, even for the seven [Canaanite] nations. Since, behold, Moses called out for peace to Sihon king of the Amorites, and he violated neither positive nor negative commandment that is in the portion: "since you shall surely condemn them [...]" (Deut. 20:17) and "[...] you shall not leave any soul alive" (Deut. 20:16). But the distinction between them is when they do not accept peace and make war, since Scripture commanded regarding distant places to strike all the [adult] males and to leave alive for them the women and the and the young children [even] among the males; and in the cities of these people [i.e., the Canaanites], it commanded to condemn even the women and the young children. And thus do our Rabbis say in the Midrash Devarim Rabbah (5:14) and also in the Tanchuma and in the Jerusalem Talmud (Sh'vi'it 6:1): "Rabbi Shmuel son of Rabbi Nachmani said: "Yehoshua son of Nun fulfilled this portion. What did Yehoshua do? He would send a letter to each place that he would go to conquer, and he would write in it: "Whomever wishes to sue for peace, come and make peace; whomever wishes to leave, leave; whomever wishes to make war, make war." The Girgashites fled. The Gibeonites, who sued for peace, Yehoshua made peace with them. The thirty one kings who came to make war, The Holy One Blessed is He caused them to fall [...]."" And thus says the Scripture regarding all of them (Joshua 11:19-20): "There was no city that made peace with the Children of Israel other than the Hivvites who lived in Gibeon; everyone [else] they took through war, since it was from Hashem to strengthen their hearts to call out for war with Israel in order to condemn them." By implication, if they wanted to make peace, they would have made peace with them! And it appears that there is a further distinction in the requesting for peace since, with the distant cities, peace would be requested of them, and they would be for us as a levy and they would serve us; however, with the cities of these people, there will be requested of them peace, and levies, and servitude, on the condition that they accept upon themselves to not serve idol worship. And this verse does not mention it in this portion since those who serve idol worship were already forbidden to us (Exodus 23:33): "They shall not live in your land lest they cause you to sin against Me, since you will serve their gods." And perhaps it was only needed to to inform them of the peace, the levies, and the subjugation, and after they are subjugated to us we would tell them that we carry out judgments against idol worship and those who serve them, whether individually or collectively. And thus it is said here (Deut. 20:18): "so that they will not teach you to do according to all of their abominations [...]". And they said in the Sifrei (Parshat Shoftim 202): "Behold, if they repented, they are not killed" - this is regarding the seven (Canaanite) nations; and the repentance that they accept upon themselves is the seven commandments which the Children of Noah were commanded, not that they would convert to become righteous converts. And in Tractate Sotah they say (Sotah 35) that "they wrote the Torah on stones in seventy languages, and they wrote below it, "so that they will not teach you to do [...]" (Deut. 20:18). Behold, if they repented, we receive them." And Rashi commented there, "to inform the nations that live outside the borders of the Land of Israel that they were not commanded to condemn them but rather those that are within the borders, so that they will not teach them their corrupted acts; but those those that live outside of it, they said to them, "if you return in repentance, we will receive you; and those that are inside it, we do not receive them, because they are doing so out of fear"" - thus says the Rabbi [Rashi]. But this is not correct, since in the cities of these nations "which Hashem your G-d gives to you as an inheritance," regarding them it says "in order so that they will not teach you," (Exodus 23:33); that is, if they repent, they are not killed. And thus [scripture] said regarding them (Exodus 23:33): "they shall not remain in your land, lest they cause you to sin against Me, since you will serve their gods [...]." That is, if they abandon their gods, they are allowed to remain there. And this is the idea behind what King Solomon did, since it is written therein (Kings I 9:15-22): "And this is the matter of the levy that King Solomon raised to build the House of Hashem, his [own] house, the Millo, and the wall of Jerusalem [...]; all the people that were remaining from the Amorites, the Hittites, the Perizites, the Hivvites, and the Jebusites - their descendants that remained after them in the land that the Children of Israel were not able to annihilate; and Solomon raised them as a labor tax, until this very day. And Solomon did not conscript [any] slave from the Children of Israel [...]." And he performed this matter in accordance with the Torah, since they accepted upon themselves the Seven [Noahide] Commandments. And the matter is clear because, since Solomon placed them as laborers, the power of his hand was upon them and he had the ability to annihilate them. Rather, [it must be] that it was permitted to allow them to live as we have written [above].

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

(1) War is not conducted against anyone in the world until they are first offered peace (and refuse it), whether this is a Discretionary War or a War of Mitzvoh, as it says, “when you come close to the city to fight with it, you shall call to it to make peace” (Deut. 20:10). If they make peace and accept the Seven Commandments incumbent upon the Sons of Noah (Gentiles), none of them are killed, but they must pay us tribute, as it says, “and they shall be for you a tributary, and they shall serve you” (Deut. 20:11). If they propose to accept upon themselves the payment of the tribute but not servitude to us or they accept servitude but not the tribute, we ignore their proposal until they accept both. The servitude referred to here is one of disgrace and is demeaning. They are not to raise their heads up to Israel for any reason. They must be subjugated to us and may never be assigned to a Position over us. The tribute they must pay shall be for service of the king, with their bodies and their money, such as the building of the walls37Of Jerusalem. and the strengthening of fortresses and the building of the royal palace and similar, as it says, “And this is the account of the levy which King Solomon raised to build the Temple of G-d, and his palace, and Milo, and the wall of Jerusalem…and all the store-cities which Solomon had…the Emorites who remained…and Solomon imposed a head-tax, until this very day. And of the Children of Israel, Solomon made none a bondsman; but they were the soldiers and his servants and his officers and his captains and those in charge of his chariots and his horsemen” (I Kings 9:15-22).

2) How the עמי הארץ were dealt with in practice during כיבוש הארץ
Unwavering wiping out of all non Jewish cities (for control of the land) and all of their inhabitants is carried out as commanded:
(כ) וַיָּ֣רַע הָעָ֔ם וַֽיִּתְקְע֖וּ בַּשֹּֽׁפָר֑וֹת וַיְהִי֩ כִשְׁמֹ֨עַ הָעָ֜ם אֶת־ק֣וֹל הַשּׁוֹפָ֗ר וַיָּרִ֤יעוּ הָעָם֙ תְּרוּעָ֣ה גְדוֹלָ֔ה וַתִּפֹּ֨ל הַֽחוֹמָ֜ה תַּחְתֶּ֗יהָ וַיַּ֨עַל הָעָ֤ם הָעִ֙ירָה֙ אִ֣ישׁ נֶגְדּ֔וֹ וַֽיִּלְכְּד֖וּ אֶת־הָעִֽיר׃ (כא) וַֽיַּחֲרִ֙ימוּ֙ אֶת־כָּל־אֲשֶׁ֣ר בָּעִ֔יר מֵאִישׁ֙ וְעַד־אִשָּׁ֔ה מִנַּ֖עַר וְעַד־זָקֵ֑ן וְעַ֨ד שׁ֥וֹר וָשֶׂ֛ה וַחֲמ֖וֹר לְפִי־חָֽרֶב׃
(20) So the people shouted when the horns were sounded. When the people heard the sound of the horns, the people raised a mighty shout and the wall collapsed. The people rushed into the city, every man straight in front of him, and they captured the city. (21) They exterminated everything in the city with the sword: man and woman, young and old, ox and sheep and ass.
(כד) וַיְהִ֣י כְּכַלּ֣וֹת יִשְׂרָאֵ֡ל לַהֲרֹג֩ אֶת־כָּל־יֹשְׁבֵ֨י הָעַ֜י בַּשָּׂדֶ֗ה בַּמִּדְבָּר֙ אֲשֶׁ֣ר רְדָפ֣וּם בּ֔וֹ וַֽיִּפְּל֥וּ כֻלָּ֛ם לְפִי־חֶ֖רֶב עַד־תֻּמָּ֑ם וַיָּשֻׁ֤בוּ כָל־יִשְׂרָאֵל֙ הָעַ֔י וַיַּכּ֥וּ אֹתָ֖הּ לְפִי־חָֽרֶב׃ (כה) וַיְהִי֩ כָל־הַנֹּ֨פְלִ֜ים בַּיּ֤וֹם הַהוּא֙ מֵאִ֣ישׁ וְעַד־אִשָּׁ֔ה שְׁנֵ֥ים עָשָׂ֖ר אָ֑לֶף כֹּ֖ל אַנְשֵׁ֥י הָעָֽי׃
(24) When Israel had killed all the inhabitants of Ai who had pursued them into the open wilderness, and all of them, to the last man, had fallen by the sword, all the Israelites turned back to Ai and put it to the sword. (25) The total of those who fell that day, men and women, the entire population of Ai, came to twelve thousand.

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

(12) Joshua captured all those royal cities and their kings. He put them to the sword; he proscribed them in accordance with the charge of Moses, the servant of the LORD. (13) However, all those towns that are still standing on their mounds were not burned down by Israel; it was Hazor alone that Joshua burned down. (14) The Israelites kept all the spoil and cattle of the rest of those cities as booty. But they cut down their populations with the sword until they exterminated them; they did not spare a soul. (15) Just as the LORD had commanded His servant Moses, so Moses had charged Joshua, and so Joshua did; he left nothing undone of all that the LORD had commanded Moses.

Covenant of peace is mistakenly made, the non Jews who are now forced to remain become subservient to בנ״י, and God shows His approval of בנ״י honoring their commitment of protection:
(ו) וַיֵּלְכ֧וּ אֶל־יְהוֹשֻׁ֛עַ אֶל־הַֽמַּחֲנֶ֖ה הַגִּלְגָּ֑ל וַיֹּאמְר֨וּ אֵלָ֜יו וְאֶל־אִ֣ישׁ יִשְׂרָאֵ֗ל מֵאֶ֤רֶץ רְחוֹקָה֙ בָּ֔אנוּ וְעַתָּ֖ה כִּרְתוּ־לָ֥נוּ בְרִֽית׃ (ז) ויאמרו [וַיֹּ֥אמֶר] אִֽישׁ־יִשְׂרָאֵ֖ל אֶל־הַחִוִּ֑י אוּלַ֗י בְּקִרְבִּי֙ אַתָּ֣ה יוֹשֵׁ֔ב וְאֵ֖יךְ אכרות־[אֶֽכְרָת־] לְךָ֥ בְרִֽית׃ (ח) וַיֹּאמְר֥וּ אֶל־יְהוֹשֻׁ֖עַ עֲבָדֶ֣יךָ אֲנָ֑חְנוּ וַיֹּ֨אמֶר אֲלֵהֶ֧ם יְהוֹשֻׁ֛עַ מִ֥י אַתֶּ֖ם וּמֵאַ֥יִן תָּבֹֽאוּ׃ (ט) וַיֹּאמְר֣וּ אֵלָ֗יו מֵאֶ֨רֶץ רְחוֹקָ֤ה מְאֹד֙ בָּ֣אוּ עֲבָדֶ֔יךָ לְשֵׁ֖ם ה' אֱלֹקֶ֑יךָ כִּֽי־שָׁמַ֣עְנוּ שָׁמְע֔וֹ וְאֵ֛ת כָּל־אֲשֶׁ֥ר עָשָׂ֖ה בְּמִצְרָֽיִם׃ (י) וְאֵ֣ת ׀ כָּל־אֲשֶׁ֣ר עָשָׂ֗ה לִשְׁנֵי֙ מַלְכֵ֣י הָאֱמֹרִ֔י אֲשֶׁ֖ר בְּעֵ֣בֶר הַיַּרְדֵּ֑ן לְסִיחוֹן֙ מֶ֣לֶךְ חֶשְׁבּ֔וֹן וּלְע֥וֹג מֶֽלֶךְ־הַבָּשָׁ֖ן אֲשֶׁ֥ר בְּעַשְׁתָּרֽוֹת׃ (יא) וַיֹּאמְר֣וּ אֵלֵ֡ינוּ זְֽקֵינֵינוּ֩ וְכָל־יֹשְׁבֵ֨י אַרְצֵ֜נוּ לֵאמֹ֗ר קְח֨וּ בְיֶדְכֶ֤ם צֵידָה֙ לַדֶּ֔רֶךְ וּלְכ֖וּ לִקְרָאתָ֑ם וַאֲמַרְתֶּ֤ם אֲלֵיהֶם֙ עַבְדֵיכֶ֣ם אֲנַ֔חְנוּ וְעַתָּ֖ה כִּרְתוּ־לָ֥נוּ בְרִֽית׃ (יב) זֶ֣ה ׀ לַחְמֵ֗נוּ חָ֞ם הִצְטַיַּ֤דְנוּ אֹתוֹ֙ מִבָּ֣תֵּ֔ינוּ בְּי֥וֹם צֵאתֵ֖נוּ לָלֶ֣כֶת אֲלֵיכֶ֑ם וְעַתָּה֙ הִנֵּ֣ה יָבֵ֔שׁ וְהָיָ֖ה נִקֻּדִֽים׃ (יג) וְאֵ֨לֶּה נֹאד֤וֹת הַיַּ֙יִן֙ אֲשֶׁ֣ר מִלֵּ֣אנוּ חֲדָשִׁ֔ים וְהִנֵּ֖ה הִתְבַּקָּ֑עוּ וְאֵ֤לֶּה שַׂלְמוֹתֵ֙ינוּ֙ וּנְעָלֵ֔ינוּ בָּל֕וּ מֵרֹ֥ב הַדֶּ֖רֶךְ מְאֹֽד׃ (יד) וַיִּקְח֥וּ הָֽאֲנָשִׁ֖ים מִצֵּידָ֑ם וְאֶת־פִּ֥י ה' לֹ֥א שָׁאָֽלוּ׃ (טו) וַיַּ֨עַשׂ לָהֶ֤ם יְהוֹשֻׁ֙עַ֙ שָׁל֔וֹם וַיִּכְרֹ֥ת לָהֶ֛ם בְּרִ֖ית לְחַיּוֹתָ֑ם וַיִּשָּׁבְע֣וּ לָהֶ֔ם נְשִׂיאֵ֖י הָעֵדָֽה׃ (טז) וַיְהִ֗י מִקְצֵה֙ שְׁלֹ֣שֶׁת יָמִ֔ים אַחֲרֵ֕י אֲשֶׁר־כָּרְת֥וּ לָהֶ֖ם בְּרִ֑ית וַֽיִּשְׁמְע֗וּ כִּי־קְרֹבִ֥ים הֵם֙ אֵלָ֔יו וּבְקִרְבּ֖וֹ הֵ֥ם יֹשְׁבִֽים׃ (יז) וַיִּסְע֣וּ בְנֵֽי־יִשְׂרָאֵ֗ל וַיָּבֹ֛אוּ אֶל־עָרֵיהֶ֖ם בַּיּ֣וֹם הַשְּׁלִישִׁ֑י וְעָרֵיהֶם֙ גִּבְע֣וֹן וְהַכְּפִירָ֔ה וּבְאֵר֖וֹת וְקִרְיַ֥ת יְעָרִֽים׃ (יח) וְלֹ֤א הִכּוּם֙ בְּנֵ֣י יִשְׂרָאֵ֔ל כִּֽי־נִשְׁבְּע֤וּ לָהֶם֙ נְשִׂיאֵ֣י הָֽעֵדָ֔ה בַּֽה' אֱלֹקֵ֣י יִשְׂרָאֵ֑ל וַיִּלֹּ֥נוּ כָל־הָעֵדָ֖ה עַל־הַנְּשִׂיאִֽים׃ (יט) וַיֹּאמְר֤וּ כָל־הַנְּשִׂיאִים֙ אֶל־כָּל־הָ֣עֵדָ֔ה אֲנַ֙חְנוּ֙ נִשְׁבַּ֣עְנוּ לָהֶ֔ם בַּֽה' אֱלֹקֵ֣י יִשְׂרָאֵ֑ל וְעַתָּ֕ה לֹ֥א נוּכַ֖ל לִנְגֹּ֥עַ בָּהֶֽם׃ (כ) זֹ֛את נַעֲשֶׂ֥ה לָהֶ֖ם וְהַחֲיֵ֣ה אוֹתָ֑ם וְלֹֽא־יִֽהְיֶ֤ה עָלֵ֙ינוּ֙ קֶ֔צֶף עַל־הַשְּׁבוּעָ֖ה אֲשֶׁר־נִשְׁבַּ֥עְנוּ לָהֶֽם׃ (כא) וַיֹּאמְר֧וּ אֲלֵיהֶ֛ם הַנְּשִׂיאִ֖ים יִֽחְי֑וּ וַ֠יִּֽהְיוּ חֹטְבֵ֨י עֵצִ֤ים וְשֹֽׁאֲבֵי־מַ֙יִם֙ לְכָל־הָ֣עֵדָ֔ה כַּאֲשֶׁ֛ר דִּבְּר֥וּ לָהֶ֖ם הַנְּשִׂיאִֽים׃ (כב) וַיִּקְרָ֤א לָהֶם֙ יְהוֹשֻׁ֔עַ וַיְדַבֵּ֥ר אֲלֵיהֶ֖ם לֵאמֹ֑ר לָמָּה֩ רִמִּיתֶ֨ם אֹתָ֜נוּ לֵאמֹ֗ר רְחוֹקִ֨ים אֲנַ֤חְנוּ מִכֶּם֙ מְאֹ֔ד וְאַתֶּ֖ם בְּקִרְבֵּ֥נוּ יֹשְׁבִֽים׃ (כג) וְעַתָּ֖ה אֲרוּרִ֣ים אַתֶּ֑ם וְלֹֽא־יִכָּרֵ֨ת מִכֶּ֜ם עֶ֗בֶד וְחֹטְבֵ֥י עֵצִ֛ים וְשֹֽׁאֲבֵי־מַ֖יִם לְבֵ֥ית אֱלֹקָֽי׃ (כד) וַיַּעֲנ֨וּ אֶת־יְהוֹשֻׁ֜עַ וַיֹּאמְר֗וּ כִּי֩ הֻגֵּ֨ד הֻגַּ֤ד לַעֲבָדֶ֙יךָ֙ אֵת֩ אֲשֶׁ֨ר צִוָּ֜ה ה' אֱלֹקֶ֙יךָ֙ אֶת־מֹשֶׁ֣ה עַבְדּ֔וֹ לָתֵ֤ת לָכֶם֙ אֶת־כָּל־הָאָ֔רֶץ וּלְהַשְׁמִ֛יד אֶת־כָּל־יֹשְׁבֵ֥י הָאָ֖רֶץ מִפְּנֵיכֶ֑ם וַנִּירָ֨א מְאֹ֤ד לְנַפְשֹׁתֵ֙ינוּ֙ מִפְּנֵיכֶ֔ם וַֽנַּעֲשֵׂ֖ה אֶת־הַדָּבָ֥ר הַזֶּֽה׃ (כה) וְעַתָּ֖ה הִנְנ֣וּ בְיָדֶ֑ךָ כַּטּ֨וֹב וְכַיָּשָׁ֧ר בְּעֵינֶ֛יךָ לַעֲשׂ֥וֹת לָ֖נוּ עֲשֵֽׂה׃ (כו) וַיַּ֥עַשׂ לָהֶ֖ם כֵּ֑ן וַיַּצֵּ֥ל אוֹתָ֛ם מִיַּ֥ד בְּנֵֽי־יִשְׂרָאֵ֖ל וְלֹ֥א הֲרָגֽוּם׃ (כז) וַיִּתְּנֵ֨ם יְהוֹשֻׁ֜עַ בַּיּ֣וֹם הַה֗וּא חֹטְבֵ֥י עֵצִ֛ים וְשֹׁ֥אֲבֵי מַ֖יִם לָֽעֵדָ֑ה וּלְמִזְבַּ֤ח ה' עַד־הַיּ֣וֹם הַזֶּ֔ה אֶל־הַמָּק֖וֹם אֲשֶׁ֥ר יִבְחָֽר׃ (פ)
(6) And so they went to Joshua in the camp at Gilgal and said to him and to the men of Israel, “We come from a distant land; we propose that you make a pact with us.” (7) The men of Israel replied to the Hivites, “But perhaps you live among us; how then can we make a pact with you?” (8) They said to Joshua, “We will be your subjects.” But Joshua asked them, “Who are you and where do you come from?” (9) They replied, “Your servants have come from a very distant country, because of the fame of the LORD your God. For we heard the report of Him: of all that He did in Egypt, (10) and of all that He did to the two Amorite kings on the other side of the Jordan, King Sihon of Heshbon and King Og of Bashan who lived in Ashtaroth. (11) So our elders and all the inhabitants of our country instructed us as follows, ‘Take along provisions for a trip, and go to them and say: We will be your subjects; come make a pact with us.’ (12) This bread of ours, which we took from our houses as provision, was still hot when we set out to come to you; and see how dry and crumbly it has become. (13) These wineskins were new when we filled them, and see how they have cracked. These clothes and sandals of ours are worn out from the very long journey.” (14) The men took [their word] because of their provisions, and did not inquire of the LORD. (15) Joshua established friendship with them; he made a pact with them to spare their lives, and the chieftains of the community gave them their oath. (16) But when three days had passed after they made this pact with them, they learned that they were neighbors, living among them. (17) So the Israelites set out, and on the third day they came to their towns; these towns were Gibeon, Chephirah, Beeroth, and Kiriath-jearim. (18) But the Israelites did not attack them, since the chieftains of the community had sworn to them by the LORD, the God of Israel. The whole community muttered against the chieftains, (19) but all the chieftains answered the whole community, “We swore to them by the LORD, the God of Israel; therefore we cannot touch them. (20) This is what we will do to them: We will spare their lives, so that there may be no wrath against us because of the oath that we swore to them.” (21) And the chieftains declared concerning them, “They shall live!” And they became hewers of wood and drawers of water for the whole community, as the chieftains had decreed concerning them. (22) Joshua summoned them and spoke to them thus: “Why did you deceive us and tell us you lived very far from us, when in fact you live among us? (23) Therefore, be accursed! Never shall your descendants cease to be slaves, hewers of wood and drawers of water for the House of my God.” (24) But they replied to Joshua, “You see, your servants had heard that the LORD your God had promised His servant Moses to give you the whole land and to wipe out all the inhabitants of the country on your account; so we were in great fear for our lives on your account. That is why we did this thing. (25) And now we are at your mercy; do with us what you consider right and proper.” (26) And he did so; he saved them from being killed by the Israelites. (27) That day Joshua made them hewers of wood and drawers of water—as they still are—for the community and for the altar of the LORD, in the place that He would choose.
Non Jews remain in areas which are part of ארץ ישראל and should be conquered, and within בנ״י‘s territory, which lasts into the period of בנ״י inhabiting the land:
(א) וִיהוֹשֻׁ֣עַ זָקֵ֔ן בָּ֖א בַּיָּמִ֑ים וַיֹּ֨אמֶר ה' אֵלָ֗יו אַתָּ֤ה זָקַ֙נְתָּה֙ בָּ֣אתָ בַיָּמִ֔ים וְהָאָ֛רֶץ נִשְׁאֲרָ֥ה הַרְבֵּֽה־מְאֹ֖ד לְרִשְׁתָּֽהּ׃ (ב) זֹ֥את הָאָ֖רֶץ הַנִּשְׁאָ֑רֶת כָּל־גְּלִיל֥וֹת הַפְּלִשְׁתִּ֖ים וְכָל־הַגְּשׁוּרִֽי׃ (ג) מִֽן־הַשִּׁיח֞וֹר אֲשֶׁ֣ר ׀ עַל־פְּנֵ֣י מִצְרַ֗יִם וְעַ֨ד גְּב֤וּל עֶקְרוֹן֙ צָפ֔וֹנָה לַֽכְּנַעֲנִ֖י תֵּחָשֵׁ֑ב חֲמֵ֣שֶׁת ׀ סַרְנֵ֣י פְלִשְׁתִּ֗ים הָעַזָּתִ֤י וְהָאַשְׁדּוֹדִי֙ הָאֶשְׁקְלוֹנִ֣י הַגִּתִּ֔י וְהָעֶקְרוֹנִ֖י וְהָעַוִּֽים׃ (ד) מִתֵּימָ֞ן כָּל־אֶ֣רֶץ הַֽכְּנַעֲנִ֗י וּמְעָרָ֛ה אֲשֶׁ֥ר לַצִּידֹנִ֖ים עַד־אֲפֵ֑קָה עַ֖ד גְּב֥וּל הָאֱמֹרִֽי׃ (ה) וְהָאָ֣רֶץ הַגִּבְלִ֗י וְכָל־הַלְּבָנוֹן֙ מִזְרַ֣ח הַשֶּׁ֔מֶשׁ מִבַּ֣עַל גָּ֔ד תַּ֖חַת הַר־חֶרְמ֑וֹן עַ֖ד לְב֥וֹא חֲמָֽת׃ (ו) כָּל־יֹשְׁבֵ֣י הָ֠הָר מִֽן־הַלְּבָנ֞וֹן עַד־מִשְׂרְפֹ֥ת מַ֙יִם֙ כָּל־צִ֣ידֹנִ֔ים אָֽנֹכִי֙ אוֹרִישֵׁ֔ם מִפְּנֵ֖י בְּנֵ֣י יִשְׂרָאֵ֑ל רַ֠ק הַפִּלֶ֤הָ לְיִשְׂרָאֵל֙ בְּֽנַחֲלָ֔ה כַּאֲשֶׁ֖ר צִוִּיתִֽיךָ׃ (ז) וְעַתָּ֗ה חַלֵּ֞ק אֶת־הָאָ֧רֶץ הַזֹּ֛את בְּנַחֲלָ֖ה לְתִשְׁעַ֣ת הַשְּׁבָטִ֑ים וַחֲצִ֖י הַשֵּׁ֥בֶט הַֽמְנַשֶּֽׁה׃
(1) Joshua was now old, advanced in years. The LORD said to him, “You have grown old, you are advanced in years; and very much of the land still remains to be taken possession of. (2) This is the territory that remains: all the districts of the Philistines and all [those of] the Geshurites, (3) from the Shihor, which is close to Egypt, to the territory of Ekron on the north, are accounted Canaanite, namely, those of the five lords of the Philistines—the Gazites, the Ashdodites, the Ashkelonites, the Gittites, and the Ekronites—and those of the Avvim (4) on the south; further, all the Canaanite country from Mearah of the Sidonians to Aphek at the Amorite border (5) and the land of the Gebalites, with the whole [Valley of the] Lebanon, from Baal-gad at the foot of Mount Hermon to Lebo-hamath on the east, (6) with all the inhabitants of the hill country from the [Valley of the] Lebanon to Misrephoth-maim, namely, all the Sidonians. I Myself will dispossess those nations for the Israelites; you have only to apportion their lands by lot among Israel, as I have commanded you. (7) Therefore, divide this territory into hereditary portions for the nine tribes and the half-tribe of Manasseh.”

(כא) וְאֶת־הַיְבוּסִי֙ יֹשֵׁ֣ב יְרֽוּשָׁלִַ֔ם לֹ֥א הוֹרִ֖ישׁוּ בְּנֵ֣י בִנְיָמִ֑ן וַיֵּ֨שֶׁב הַיְבוּסִ֜י אֶת־בְּנֵ֤י בִנְיָמִן֙ בִּיר֣וּשָׁלִַ֔ם עַ֖ד הַיּ֥וֹם הַזֶּֽה׃ (ס) (פ)

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

(21) The Benjaminites did not dispossess the Jebusite inhabitants of Jerusalem; so the Jebusites have dwelt with the Benjaminites in Jerusalem to this day.

(27) Manasseh did not dispossess [the inhabitants of] Beth-shean and its dependencies, or [of] Taanach and its dependencies, or the inhabitants of Dor and its dependencies, or the inhabitants of Ibleam and its dependencies, or the inhabitants of Megiddo and its dependencies. The Canaanites persisted in dwelling in this region. (28) And when Israel gained the upper hand, they subjected the Canaanites to forced labor; but they did not dispossess them. (29) Nor did Ephraim dispossess the Canaanites who inhabited Gezer; so the Canaanites dwelt in their midst at Gezer. (30) Zebulun did not dispossess the inhabitants of Kitron or the inhabitants of Nahalol; so the Canaanites dwelt in their midst, but they were subjected to forced labor. (31) Asher did not dispossess the inhabitants of Acco or the inhabitants of Sidon, Ahlab, Achzib, Helbah, Aphik, and Rehob. (32) So the Asherites dwelt in the midst of the Canaanites, the inhabitants of the land, for they did not dispossess them. (33) Naphtali did not dispossess the inhabitants of Beth-shemesh or the inhabitants of Beth-anath. But they settled in the midst of the Canaanite inhabitants of the land, and the inhabitants of Beth-shemesh and Beth-anath had to perform forced labor for them. (34) The Amorites pressed the Danites into the hill country; they would not let them come down to the plain. (35) The Amorites also persisted in dwelling in Har-heres, in Aijalon, and in Shaalbim. But the hand of the House of Joseph bore heavily on them and they had to perform forced labor. (36) The territory of the Amorites extended from the Ascent of Akrabbim—from Sela—onward.

(כ) וַיִּֽחַר־אַ֥ף ה' בְּיִשְׂרָאֵ֑ל וַיֹּ֗אמֶר יַעַן֩ אֲשֶׁ֨ר עָבְר֜וּ הַגּ֣וֹי הַזֶּ֗ה אֶת־בְּרִיתִי֙ אֲשֶׁ֣ר צִוִּ֣יתִי אֶת־אֲבוֹתָ֔ם וְלֹ֥א שָׁמְע֖וּ לְקוֹלִֽי׃ (כא) גַּם־אֲנִי֙ לֹ֣א אוֹסִ֔יף לְהוֹרִ֥ישׁ אִ֖ישׁ מִפְּנֵיהֶ֑ם מִן־הַגּוֹיִ֛ם אֲשֶׁר־עָזַ֥ב יְהוֹשֻׁ֖עַ וַיָּמֹֽת׃ (כב) לְמַ֛עַן נַסּ֥וֹת בָּ֖ם אֶת־יִשְׂרָאֵ֑ל הֲשֹׁמְרִ֣ים הֵם֩ אֶת־דֶּ֨רֶךְ ה' לָלֶ֣כֶת בָּ֗ם כַּאֲשֶׁ֛ר שָׁמְר֥וּ אֲבוֹתָ֖ם אִם־לֹֽא׃ (כג) וַיַּנַּ֤ח ה' אֶת־הַגּוֹיִ֣ם הָאֵ֔לֶּה לְבִלְתִּ֥י הוֹרִישָׁ֖ם מַהֵ֑ר וְלֹ֥א נְתָנָ֖ם בְּיַד־יְהוֹשֻֽׁעַ׃ (פ)
(20) Then the LORD became incensed against Israel, and He said, “Since that nation has transgressed the covenant that I enjoined upon their fathers and has not obeyed Me, (21) I for My part will no longer drive out before them any of the nations that Joshua left when he died.” (22) For it was in order to test Israel by them—[to see] whether or not they would faithfully walk in the ways of the LORD, as their fathers had done— (23) that the LORD had left those nations, instead of driving them out at once, and had not delivered them into the hands of Joshua.
3) Dealing with the continued negative influence of living amongst עמי הארץ:
Yehoshua’s advice on dealing with the influence of עמי הארץ amongst בנ״י: a) continue to remove them after the period of (or to complete) כיבוש הארץ b) do not allow them to tempt and influence you
(א) וַֽיְהִי֙ מִיָּמִ֣ים רַבִּ֔ים אַ֠חֲרֵי אֲשֶׁר־הֵנִ֨יחַ ה' לְיִשְׂרָאֵ֛ל מִכָּל־אֹיְבֵיהֶ֖ם מִסָּבִ֑יב וִיהוֹשֻׁ֣עַ זָקֵ֔ן בָּ֖א בַּיָּמִֽים׃ (ב) וַיִּקְרָ֤א יְהוֹשֻׁ֙עַ֙ לְכָל־יִשְׂרָאֵ֔ל לִזְקֵנָיו֙ וּלְרָאשָׁ֔יו וּלְשֹׁפְטָ֖יו וּלְשֹֽׁטְרָ֑יו וַיֹּ֣אמֶר אֲלֵהֶ֔ם אֲנִ֣י זָקַ֔נְתִּי בָּ֖אתִי בַּיָּמִֽים׃ (ג) וְאַתֶּ֣ם רְאִיתֶ֗ם אֵת֩ כָּל־אֲשֶׁ֨ר עָשָׂ֜ה ה' אֱלֹקֵיכֶ֛ם לְכָל־הַגּוֹיִ֥ם הָאֵ֖לֶּה מִפְּנֵיכֶ֑ם כִּ֚י ה' אֱלֹקֵיכֶ֔ם ה֖וּא הַנִּלְחָ֥ם לָכֶֽם׃ (ד) רְאוּ֩ הִפַּ֨לְתִּי לָכֶ֜ם אֶֽת־הַ֠גּוֹיִם הַנִּשְׁאָרִ֥ים הָאֵ֛לֶּה בְּנַחֲלָ֖ה לְשִׁבְטֵיכֶ֑ם מִן־הַיַּרְדֵּ֗ן וְכָל־הַגּוֹיִם֙ אֲשֶׁ֣ר הִכְרַ֔תִּי וְהַיָּ֥ם הַגָּד֖וֹל מְב֥וֹא הַשָּֽׁמֶשׁ׃ (ה) וַה' אֱלֹֽקֵיכֶ֗ם ה֚וּא יֶהְדֳּפֵ֣ם מִפְּנֵיכֶ֔ם וְהוֹרִ֥ישׁ אֹתָ֖ם מִלִּפְנֵיכֶ֑ם וִֽירִשְׁתֶּם֙ אֶת־אַרְצָ֔ם כַּאֲשֶׁ֥ר דִּבֶּ֛ר ה' אֱלֹקֵיכֶ֖ם לָכֶֽם׃ (ו) וַחֲזַקְתֶּ֣ם מְאֹ֔ד לִשְׁמֹ֣ר וְלַעֲשׂ֔וֹת אֵ֚ת כָּל־הַכָּת֔וּב בְּסֵ֖פֶר תּוֹרַ֣ת מֹשֶׁ֑ה לְבִלְתִּ֥י סוּר־מִמֶּ֖נּוּ יָמִ֥ין וּשְׂמֹֽאול׃ (ז) לְבִלְתִּי־בוֹא֙ בַּגּוֹיִ֣ם הָאֵ֔לֶּה הַנִּשְׁאָרִ֥ים הָאֵ֖לֶּה אִתְּכֶ֑ם וּבְשֵׁ֨ם אֱלֹהֵיהֶ֤ם לֹא־תַזְכִּ֙ירוּ֙ וְלֹ֣א תַשְׁבִּ֔יעוּ וְלֹ֣א תַעַבְד֔וּם וְלֹ֥א תִֽשְׁתַּחֲו֖וּ לָהֶֽם׃ (ח) כִּ֛י אִם־בַּה' אֱלֹקֵיכֶ֖ם תִּדְבָּ֑קוּ כַּאֲשֶׁ֣ר עֲשִׂיתֶ֔ם עַ֖ד הַיּ֥וֹם הַזֶּֽה׃ (ט) וַיּ֤וֹרֶשׁ ה' מִפְּנֵיכֶ֔ם גּוֹיִ֖ם גְּדֹלִ֣ים וַעֲצוּמִ֑ים וְאַתֶּ֗ם לֹא־עָ֤מַד אִישׁ֙ בִּפְנֵיכֶ֔ם עַ֖ד הַיּ֥וֹם הַזֶּֽה׃ (י) אִישׁ־אֶחָ֥ד מִכֶּ֖ם יִרְדָּף־אָ֑לֶף כִּ֣י ׀ ה' אֱלֹקֵיכֶ֗ם ה֚וּא הַנִּלְחָ֣ם לָכֶ֔ם כַּאֲשֶׁ֖ר דִּבֶּ֥ר לָכֶֽם׃ (יא) וְנִשְׁמַרְתֶּ֥ם מְאֹ֖ד לְנַפְשֹֽׁתֵיכֶ֑ם לְאַהֲבָ֖ה אֶת־ה' אֱלֹקֵיכֶֽם׃ (יב) כִּ֣י ׀ אִם־שׁ֣וֹב תָּשׁ֗וּבוּ וּדְבַקְתֶּם֙ בְּיֶ֙תֶר֙ הַגּוֹיִ֣ם הָאֵ֔לֶּה הַנִּשְׁאָרִ֥ים הָאֵ֖לֶּה אִתְּכֶ֑ם וְהִֽתְחַתַּנְתֶּ֥ם בָּהֶ֛ם וּבָאתֶ֥ם בָּהֶ֖ם וְהֵ֥ם בָּכֶֽם׃ (יג) יָד֙וֹעַ֙ תֵּֽדְע֔וּ כִּי֩ לֹ֨א יוֹסִ֜יף ה' אֱלֹקֵיכֶ֗ם לְהוֹרִ֛ישׁ אֶת־הַגּוֹיִ֥ם הָאֵ֖לֶּה מִלִּפְנֵיכֶ֑ם וְהָי֨וּ לָכֶ֜ם לְפַ֣ח וּלְמוֹקֵ֗שׁ וּלְשֹׁטֵ֤ט בְּצִדֵּיכֶם֙ וְלִצְנִנִ֣ים בְּעֵינֵיכֶ֔ם עַד־אֲבָדְכֶ֗ם מֵ֠עַל הָאֲדָמָ֤ה הַטּוֹבָה֙ הַזֹּ֔את אֲשֶׁר֙ נָתַ֣ן לָכֶ֔ם ה' אֱלֹקֵיכֶֽם׃
(1) Much later, after the LORD had given Israel rest from all the enemies around them, and when Joshua was old and well advanced in years, (2) Joshua summoned all Israel, their elders and commanders, their magistrates and officials, and said to them: “I have grown old and am advanced in years. (3) You have seen all that the LORD your God has done to all those nations on your account, for it was the LORD your God who fought for you. (4) See, I have allotted to you, by your tribes, [the territory of] these nations that still remain, and that of all the nations that I have destroyed, from the Jordan to the Mediterranean Sea in the west. (5) The LORD your God Himself will thrust them out on your account and drive them out to make way for you, and you shall possess their land as the LORD your God promised you. (6) “But be most resolute to observe faithfully all that is written in the Book of the Teaching of Moses, without ever deviating from it to the right or to the left, (7) and without intermingling with these nations that are left among you. Do not utter the names of their gods or swear by them; do not serve them or bow down to them. (8) But hold fast to the LORD your God as you have done to this day. (9) “The LORD has driven out great, powerful nations on your account, and not a man has withstood you to this day. (10) A single man of you would put a thousand to flight, for the LORD your God Himself has been fighting for you, as He promised you. (11) For your own sakes, therefore, be most mindful to love the LORD your God. (12) For should you turn away and attach yourselves to the remnant of those nations—to those that are left among you—and intermarry with them, you joining them and they joining you, (13) know for certain that the LORD your God will not continue to drive these nations out before you; they shall become a snare and a trap for you, a scourge to your sides and thorns in your eyes, until you perish from this good land that the LORD your God has given you.
Removing the control of עמי הארץ over any part of of ארץ ישראל is applicable for all time, long after the כיבוש הארץ period ends:
(ו) וַיֵּ֨לֶךְ הַמֶּ֤לֶךְ וַֽאֲנָשָׁיו֙ יְר֣וּשָׁלִַ֔ם אֶל־הַיְבֻסִ֖י יוֹשֵׁ֣ב הָאָ֑רֶץ וַיֹּ֨אמֶר לְדָוִ֤ד לֵאמֹר֙ לֹא־תָב֣וֹא הֵ֔נָּה כִּ֣י אִם־הֱסִֽירְךָ֗ הַעִוְרִ֤ים וְהַפִּסְחִים֙ לֵאמֹ֔ר לֹֽא־יָב֥וֹא דָוִ֖ד הֵֽנָּה׃ (ז) וַיִּלְכֹּ֣ד דָּוִ֔ד אֵ֖ת מְצֻדַ֣ת צִיּ֑וֹן הִ֖יא עִ֥יר דָּוִֽד׃ (ח) וַיֹּ֨אמֶר דָּוִ֜ד בַּיּ֣וֹם הַה֗וּא כָּל־מַכֵּ֤ה יְבֻסִי֙ וְיִגַּ֣ע בַּצִּנּ֔וֹר וְאֶת־הַפִּסְחִים֙ וְאֶת־הַ֣עִוְרִ֔ים שנאו [שְׂנֻאֵ֖י] נֶ֣פֶשׁ דָּוִ֑ד עַל־כֵּן֙ יֹֽאמְר֔וּ עִוֵּ֣ר וּפִסֵּ֔חַ לֹ֥א יָב֖וֹא אֶל־הַבָּֽיִת׃ (ט) וַיֵּ֤שֶׁב דָּוִד֙ בַּמְּצֻדָ֔ה וַיִּקְרָא־לָ֖הּ עִ֣יר דָּוִ֑ד וַיִּ֤בֶן דָּוִד֙ סָבִ֔יב מִן־הַמִּלּ֖וֹא וָבָֽיְתָה׃ (י) וַיֵּ֥לֶךְ דָּוִ֖ד הָל֣וֹךְ וְגָד֑וֹל וַה' אֱלֹקֵ֥י צְבָא֖וֹת עִמּֽוֹ׃ (פ)
(6) The king and his men set out for Jerusalem against the Jebusites who inhabited the region. David was told, “You will never get in here! Even the blind and the lame will turn you back.” (They meant: David will never enter here.) (7) But David captured the stronghold of Zion; it is now the City of David. (8) On that occasion David said, “Those who attack the Jebusites shall reach the water channel and [strike down] the lame and the blind, who are hateful to David.” That is why they say: “No one who is blind or lame may enter the House.” (9) David occupied the stronghold and renamed it the City of David; David also fortified the surrounding area, from the Millo inward. (10) David kept growing stronger, for the LORD, the God of Hosts, was with him.
Among those who aren't able to be / haven't yet been removed -- continuing to allow the עמי הארץ to inhabit the land, but to be a subjugated group:
(טו) וְזֶ֨ה דְבַר־הַמַּ֜ס אֲשֶֽׁר־הֶעֱלָ֣ה ׀ הַמֶּ֣לֶךְ שְׁלֹמֹ֗ה לִבְנוֹת֩ אֶת־בֵּ֨ית ה' וְאֶת־בֵּיתוֹ֙ וְאֶת־הַמִּלּ֔וֹא וְאֵ֖ת חוֹמַ֣ת יְרוּשָׁלִָ֑ם וְאֶת־חָצֹ֥ר וְאֶת־מְגִדּ֖וֹ וְאֶת־גָּֽזֶר׃ (טז) פַּרְעֹ֨ה מֶֽלֶךְ־מִצְרַ֜יִם עָלָ֗ה וַיִּלְכֹּ֤ד אֶת־גֶּ֙זֶר֙ וַיִּשְׂרְפָ֣הּ בָּאֵ֔שׁ וְאֶת־הַֽכְּנַעֲנִ֛י הַיֹּשֵׁ֥ב בָּעִ֖יר הָרָ֑ג וַֽיִּתְּנָהּ֙ שִׁלֻּחִ֔ים לְבִתּ֖וֹ אֵ֥שֶׁת שְׁלֹמֹֽה׃ (יז) וַיִּ֤בֶן שְׁלֹמֹה֙ אֶת־גָּ֔זֶר וְאֶת־בֵּ֥ית חֹרֹ֖ן תַּחְתּֽוֹן׃ (יח) וְאֶֽת־בַּעֲלָ֛ת וְאֶת־תמר [תַּדְמֹ֥ר] בַּמִּדְבָּ֖ר בָּאָֽרֶץ׃ (יט) וְאֵ֨ת כָּל־עָרֵ֤י הַֽמִּסְכְּנוֹת֙ אֲשֶׁ֣ר הָי֣וּ לִשְׁלֹמֹ֔ה וְאֵת֙ עָרֵ֣י הָרֶ֔כֶב וְאֵ֖ת עָרֵ֣י הַפָּרָשִׁ֑ים וְאֵ֣ת ׀ חֵ֣שֶׁק שְׁלֹמֹ֗ה אֲשֶׁ֤ר חָשַׁק֙ לִבְנ֤וֹת בִּירוּשָׁלִַ֙ם֙ וּבַלְּבָנ֔וֹן וּבְכֹ֖ל אֶ֥רֶץ מֶמְשַׁלְתּֽוֹ׃ (כ) כָּל־הָ֠עָם הַנּוֹתָ֨ר מִן־הָאֱמֹרִ֜י הַחִתִּ֤י הַפְּרִזִּי֙ הַחִוִּ֣י וְהַיְבוּסִ֔י אֲשֶׁ֛ר לֹֽא־מִבְּנֵ֥י יִשְׂרָאֵ֖ל הֵֽמָּה׃ (כא) בְּנֵיהֶ֗ם אֲשֶׁ֨ר נֹתְר֤וּ אַחֲרֵיהֶם֙ בָּאָ֔רֶץ אֲשֶׁ֧ר לֹֽא־יָכְל֛וּ בְּנֵ֥י יִשְׂרָאֵ֖ל לְהַֽחֲרִימָ֑ם וַיַּעֲלֵ֤ם שְׁלֹמֹה֙ לְמַס־עֹבֵ֔ד עַ֖ד הַיּ֥וֹם הַזֶּֽה׃

(15) This was the purpose of the forced labor which Solomon imposed: It was to build the House of the LORD, his own palace, the Millo, and the wall of Jerusalem, and [to fortify] Hazor, Megiddo, and Gezer. ( (16) Pharaoh king of Egypt had come up and captured Gezer; he destroyed it by fire, killed the Canaanites who dwelt in the town, and gave it as dowry to his daughter, Solomon’s wife.) (17) So Solomon fortified Gezer, lower Beth-horon, (18) Baalith, and Tamar in the wilderness, in the land [of Judah], (19) and all of Solomon’s garrison towns, chariot towns, and cavalry towns—everything that Solomon set his heart on building in Jerusalem and in the Lebanon, and throughout the territory that he ruled. (20) All the people that were left of the Amorites, Hittites, Perizzites, Hivites, and Jebusites who were not of the Israelite stock— (21) those of their descendants who remained in the land and whom the Israelites were not able to annihilate—of these Solomon made a slave force, as is still the case.

Following the עמי הארץ in abandoning Hashem for other gods (as opposed to following internal Israelite heretics):
(יד) לֹ֣א תֵֽלְכ֔וּן אַחֲרֵ֖י אֱלֹקִ֣ים אֲחֵרִ֑ים מֵאֱלֹקֵי֙ הָֽעַמִּ֔ים אֲשֶׁ֖ר סְבִיבוֹתֵיכֶֽם׃ (טו) כִּ֣י אֵ֥ל קַנָּ֛א ה' אֱלֹקֶ֖יךָ בְּקִרְבֶּ֑ךָ פֶּן־יֶ֠חֱרֶה אַף־ה' אֱלֹקֶ֙יךָ֙ בָּ֔ךְ וְהִשְׁמִ֣ידְךָ֔ מֵעַ֖ל פְּנֵ֥י הָאֲדָמָֽה׃ (ס)
(14) Do not follow other gods, any gods of the peoples about you— (15) for the LORD your God in your midst is an impassioned God—lest the anger of the LORD your God blaze forth against you and He wipe you off the face of the earth.
(יא) וַיַּעֲשׂ֧וּ בְנֵֽי־יִשְׂרָאֵ֛ל אֶת־הָרַ֖ע בְּעֵינֵ֣י ה' וַיַּעַבְד֖וּ אֶת־הַבְּעָלִֽים׃ (יב) וַיַּעַזְב֞וּ אֶת־ה' ׀ אֱלֹקֵ֣י אֲבוֹתָ֗ם הַמּוֹצִ֣יא אוֹתָם֮ מֵאֶ֣רֶץ מִצְרַיִם֒ וַיֵּלְכ֞וּ אַחֲרֵ֣י ׀ אֱלֹקִ֣ים אֲחֵרִ֗ים מֵאֱלֹקֵ֤י הָֽעַמִּים֙ אֲשֶׁר֙ סְבִיב֣וֹתֵיהֶ֔ם וַיִּֽשְׁתַּחֲו֖וּ לָהֶ֑ם וַיַּכְעִ֖סוּ אֶת־ה'׃ (יג) וַיַּעַזְב֖וּ אֶת־ה' וַיַּעַבְד֥וּ לַבַּ֖עַל וְלָעַשְׁתָּרֽוֹת׃ (יד) וַיִּֽחַר־אַ֤ף ה' בְּיִשְׂרָאֵ֔ל וַֽיִּתְּנֵם֙ בְּיַד־שֹׁסִ֔ים וַיָּשֹׁ֖סּוּ אוֹתָ֑ם וַֽיִּמְכְּרֵ֞ם בְּיַ֤ד אֽוֹיְבֵיהֶם֙ מִסָּבִ֔יב וְלֹֽא־יָכְל֣וּ ע֔וֹד לַעֲמֹ֖ד לִפְנֵ֥י אוֹיְבֵיהֶֽם׃
(11) And the Israelites did what was offensive to the LORD. They worshiped the Baalim (12) and forsook the LORD, the God of their fathers, who had brought them out of the land of Egypt. They followed other gods, from among the gods of the peoples around them, and bowed down to them; they provoked the LORD. (13) They forsook the LORD and worshiped Baal and the Ashtaroth. (14) Then the LORD was incensed at Israel, and He handed them over to foes who plundered them. He surrendered them to their enemies on all sides, and they could no longer hold their own against their enemies.
Intermarriage influence:
(ה) וּבְנֵ֣י יִשְׂרָאֵ֔ל יָשְׁב֖וּ בְּקֶ֣רֶב הַֽכְּנַעֲנִ֑י הַחִתִּ֤י וְהָֽאֱמֹרִי֙ וְהַפְּרִזִּ֔י וְהַחִוִּ֖י וְהַיְבוּסִֽי׃ (ו) וַיִּקְח֨וּ אֶת־בְּנוֹתֵיהֶ֤ם לָהֶם֙ לְנָשִׁ֔ים וְאֶת־בְּנוֹתֵיהֶ֖ם נָתְנ֣וּ לִבְנֵיהֶ֑ם וַיַּעַבְד֖וּ אֶת־אֱלֹהֵיהֶֽם׃ (פ)
(5) The Israelites settled among the Canaanites, Hittites, Amorites, Perizzites, Hivites, and Jebusites; (6) they took their daughters to wife and gave their own daughters to their sons, and they worshiped their gods.

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

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

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

(1) When this was over, the officers approached me, saying, “The people of Israel and the priests and Levites have not separated themselves from the peoples of the land whose abhorrent practices are like those of the Canaanites, the Hittites, the Perizzites, the Jebusites, the Ammonites, the Moabites, the Egyptians, and the Amorites. (2) They have taken their daughters as wives for themselves and for their sons, so that the holy seed has become intermingled with the peoples of the land; and it is the officers and prefects who have taken the lead in this trespass.” (3) When I heard this, I rent my garment and robe, I tore hair out of my head and beard, and I sat desolate.

(10) “Now, what can we say in the face of this, O our God, for we have forsaken Your commandments, (11) which You gave us through Your servants the prophets when You said, ‘The land that you are about to possess is a land unclean through the uncleanness of the peoples of the land, through their abhorrent practices with which they, in their impurity, have filled it from one end to the other. (12) Now then, do not give your daughters in marriage to their sons or let their daughters marry your sons; do nothing for their well-being or advantage, then you will be strong and enjoy the bounty of the land and bequeath it to your children forever.’ (13) After all that has happened to us because of our evil deeds and our deep guilt—though You, our God, have been forbearing, [punishing us] less than our iniquity [deserves] in that You have granted us such a remnant as this— (14) shall we once again violate Your commandments by intermarrying with these peoples who follow such abhorrent practices? Will You not rage against us till we are destroyed without remnant or survivor? (15) O LORD, God of Israel, You are benevolent, for we have survived as a remnant, as is now the case. We stand before You in all our guilt, for we cannot face You on this account.” (1) While Ezra was praying and making confession, weeping and prostrating himself before the House of God, a very great crowd of Israelites gathered about him, men, women, and children; the people were weeping bitterly. (2) Then Shecaniah son of Jehiel of the family of Elam spoke up and said to Ezra, “We have trespassed against our God by bringing into our homes foreign women from the peoples of the land; but there is still hope for Israel despite this. (3) Now then, let us make a covenant with our God to expel all these women and those who have been born to them, in accordance with the bidding of the Lord and of all who are concerned over the commandment of our God, and let the Teaching be obeyed. (4) Take action, for the responsibility is yours and we are with you. Act with resolve!” (5) So Ezra at once put the officers of the priests and the Levites and all Israel under oath to act accordingly, and they took the oath.

(10) Then Ezra the priest got up and said to them, “You have trespassed by bringing home foreign women, thus aggravating the guilt of Israel. (11) So now, make confession to the LORD, God of your fathers, and do His will, and separate yourselves from the peoples of the land and from the foreign women.” (12) The entire congregation responded in a loud voice, “We must surely do just as you say.

4) Their status as non Jews in the land and accepted level of religiosity, as possible גר תושב -- God's intolerance for idolatry (or lack of recognition of Hashem) and other מצות בני נח inside ארץ ישראל, tacit allowance of henotheism or שיתוף among non Jews
I: Rules of a גר תושב who is allowed to live in Eretz Yisrael:
A) Must accept Jewish rule over Eretz Yisrael

(יא) וְהָיָה֙ אִם־שָׁל֣וֹם תַּֽעַנְךָ֔ וּפָתְחָ֖ה לָ֑ךְ וְהָיָ֞ה כָּל־הָעָ֣ם הַנִּמְצָא־בָ֗הּ יִהְי֥וּ לְךָ֛ לָמַ֖ס וַעֲבָדֽוּךָ׃

(11) If it responds peaceably and lets you in, all the people present there shall serve you at forced labor.

B) Must accept 7 Noachide Laws
(יח) לְמַ֗עַן אֲשֶׁ֨ר לֹֽא־יְלַמְּד֤וּ אֶתְכֶם֙ לַעֲשׂ֔וֹת כְּכֹל֙ תּֽוֹעֲבֹתָ֔ם אֲשֶׁ֥ר עָשׂ֖וּ לֵֽאלֹהֵיהֶ֑ם וַחֲטָאתֶ֖ם לַה' אֱלֹקֵיכֶֽם׃ (ס)
(18) lest they lead you into doing all the abhorrent things that they have done for their gods and you stand guilty before the LORD your God.

ספרי, שופטים רב

״למען אשר לא ילמדו אתכם לעשות.״ מלמד שאם עושים תשובה, אין נהרגים.

רמב״ן סברא:

בשבעת עממים הוא והתשובה הוא שיקבלו עליהם שבע מצות שנצטוו בני נח לא שיתגיירו להיותם גרי צדק

Sifrei (Parshat Shoftim 202):

(Devarim 20:18) "So that they not teach you to do according to all their abominations": whereby we are taught if they repented, they are not killed.


Ramban’s logical conclusion:

This is regarding the seven (Canaanite) nations; and the repentance that they accept upon themselves is the seven commandments which the Children of Noah were commanded, not that they would convert to become righteous converts.

תנו רבנן שבע מצות נצטוו בני נח דינין וברכת השם ע"ז גילוי עריות ושפיכות דמים וגזל ואבר מן החי

§ Since the halakhot of the descendants of Noah have been mentioned, a full discussion of the Noahide mitzvot is presented. The Sages taught in a baraita: The descendants of Noah, i.e., all of humanity, were commanded to observe seven mitzvot: The mitzva of establishing courts of judgment; and the prohibition against blessing, i.e., cursing, the name of God; and the prohibition of idol worship; and the prohibition against forbidden sexual relations; and the prohibition of bloodshed; and the prohibition of robbery; and the prohibition against eating a limb from a living animal.

וחכ"א כל שקיבל עליו שבע מצות שקבלו עליהם בני נח
And the Rabbis say: Anyone who has accepted upon himself observance of the seven mitzvot that the descendants of Noah accepted upon themselves is a ger toshav.
דתניא (שמות כג, לג) לא ישבו בארצך פן יחטיאו אותך לי וגו' יכול בעובד כוכבים שקיבל עליו שלא לעבוד עבודת כוכבים הכתוב מדבר ת"ל (דברים כג, טז) לא תסגיר עבד אל אדוניו אשר ינצל אליך מעם אדוניו מאי תקנתו עמך ישב בקרבך וגו'
As it is taught in a baraita: The verse states with regard to the residents of the Land of Canaan: “They shall not dwell in your land lest they make you to sin against Me, for you will serve their gods; for they will be a snare to you” (Exodus 23:33). One might have thought that the verse is also speaking of a gentile who accepted upon himself not to engage in idol worship, and is teaching that such a gentile may not dwell in Eretz Yisrael as well; therefore the verse states: “You shall not deliver to his master a slave who escaped to you from his master” (Deuteronomy 23:16). The baraita understands that the verse is speaking in metaphoric terms about a gentile who has come to Eretz Yisrael, escaping his idolatrous past. The baraita continues: What is this gentile’s remedy? “He shall dwell with you in your midst” (Deuteronomy 23:17). This teaches that as long as he accepts upon himself not to engage in idol worship, he may remain in Eretz Yisrael.

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

(6) All of these liberal treatments are not ordained save when Israelites are sojourning among idolaters or when the idolaters have overpowered Israel in his own land; but if the government of his land be in his own hand, it is forbidden to permit idolaters to settle therein, for even if one of them merely desires to sojourn or pass from place to place with merchandise he must not pass through Eretz Yisrael before he obligates himself to live up to the seven Noaitic commandments,10Existence of God, 2 idolatry, 3 murder, 4 incest, 5 flesh of a live animal, 6 robbery, 7 right of property. G. even as it is said: "They shall not dwell in thy land lest they make thee sin against Me" (Ex. 23.33)—not even dwell therein temporarily. If an idolater obligated himself to observe the Seven Noaitic commandments he is a sojourning alien. The tribunal does not accept a sojourning alien save during the Jubilee year, but during the interval none save a just proselyte is accepted.12Arakin, 29b. C.

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

Rabbi Shimon ben Elazar says: The halakhot pertaining to a gentile who resides in Eretz Yisrael and observes the seven Noahide mitzvot [ger toshav] apply only during a period when the Jubilee Year is observed. Rav Beivai said: What is the reason? It is derived from a verbal analogy between “well” and “well.” It is written here, with regard to a Hebrew slave, who can be sold only when the Jubilee Year is observed: “Because he fares well with you” (Deuteronomy 15:16). And it is written there, with regard to a ger toshav: “Where it is well for him; you shall not wrong him” (Deuteronomy 23:17).

וְאֵין מְקַבְּלִין גֵּר תּוֹשָׁב אֶלָּא בִּזְמַן שֶׁהַיּוֹבֵל נוֹהֵג. [אֲבָל בַּזְּמַן הַזֶּה אֲפִלּוּ קִבֵּל עָלָיו כָּל הַתּוֹרָה כֻּלָּהּ חוּץ מִדִּקְדּוּק אֶחָד אֵין מְקַבְּלִין אוֹתוֹ:]

The Halachik framework of of גר תושב does not apply unless the Yovel cycle is in operation (which only exists when the Beit Hamikdash stands, which means that the regulations of a גר תושב only exist during a time of Jewish control over ארץ ישראל) [...]

(A more detailed explanation: https://www.sefaria.org/sheets/68566)
II: Concept of non Jewish יראי השם/יראי שמיים (one who is not a Jew, has not committed to being a גר תושב who accepts the שבע מצות בני נח, but acknowledges Hashem as at least among those with godly power) who observes a שיתוף religious practice (A non-Jew who does not practice Avodah Zara, and recognizes Hashem not as One but combined with a recognition of other gods):
"The Sebomenoi in Josephus," Ralph Marcus
We know from Pagan, Christian and Jewish sources that during the Hellenistic and early Roman period, some Gentiles were so strongly attracted to Judaism that they became converts and undertook to observe Jewish laws and customs in the same manner as did the Jews themselves. [...] It is also commonly assumed that there were some Gentiles who did not go so far as to become converts but indicated their belief in monotheism and gave up the worship of Pagan gods. How far they went in openly dissociating themselves from Paganism and in associating themselves with Judaism we do not know. These Gentile sympathizers are commonly thought to be referred by the terms sebomenoi or phoboumenoi ton theon and metuentes in Greek and Latin sources, and yir᾿ê shamayim "fearers of Heaven" (i.e. God-fearers) in some early Rabbinic passages.
ולא יגרום לאחרים שידרו בשמו ושיקיימו בשמו מסייעא ליה לאבוה דשמואל דאמר אבוה דשמואל אסור לאדם שיעשה שותפות עם העובד כוכבים שמא יתחייב לו שבועה ונשבע בעבודת כוכבים שלו והתורה אמרה לא ישמע על פיך
The baraita teaches: And one may not cause others, i.e., gentiles, to vow in the name of an idol or affirm their statements by an oath in its name. The Gemara comments: The baraita supports the opinion of Shmuel’s father, as Shmuel’s father says: It is prohibited for a person to enter into a partnership with a gentile, lest their joint ventures lead them to quarrel, and his gentile partner will be obligated to take an oath to him, and he will take an oath in the name of his object of idol worship; and the Torah states: “Neither let it be heard out of your mouth,” which includes causing a gentile to take an oath in the name of an idol.

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

אסור לאדם שיעשה שותפות - [...] It is permissible to [cause a gentile's oath through litigation with one's non-Jewish partner because] today all swear in the name of the saints to whom no divinity is ascribed. Even though they also mention God's name and have in mind another thing, in any event no idolatrous name is actually said, and they also have the Creator of the world in mind. Even though they associate (shituf) God's name with "something else", we do not find that it is forbidden to cause others to associate (shituf), and there is no issue of placing a stumbling block before the blind (see Leviticus 19:14) [by entering into litigation with the non-Jewish business partner, thereby causing him to take an oath] because Noachides were not warned about it.

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

ומיהו אם נשתתף כו׳ -- Today, it is permitted [to form a partnership with Christians], because when they swear on their holy scriptures called the Evangelion, they do not hold it to be divine. Even though when they mention God they mean Jesus, they do not mention idolatry since they really mean the Creator of heaven and earth. Even though they mention jointly (shituf) God's name and another name, there is no prohibition to cause someone to jointly mention [or associate] (shituf) God with another... since this association is not forbidden to gentiles.

שיתוף is still unacceptable for Jews--

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

וַיַּעַזְב֞וּ אֶת־ה׳ ׀ אֱלֹקי אֲבוֹתָ֗ם הַמּוֹצִ֣יא אוֹתָם֮ מֵאֶ֣רֶץ מִצְרַיִם֒ וַיֵּלְכ֞וּ אַחֲרֵ֣י ׀ אֱלֹהים אֲחֵרִ֗ים מֵאֱלֹהי הָֽעַמִּים֙ אֲשֶׁר֙ סְבִיב֣וֹתֵיהֶ֔ם וַיִּֽשְׁתַּחֲו֖וּ לָהֶ֑ם וַיַּכְעִ֖סוּ אֶת־ה׳׃

and forsook the LORD, the God of their fathers, who had brought them out of the land of Egypt. They followed other gods, from among the gods of the peoples around them, and bowed down to them; they provoked the LORD.

Case #1: The גדעונים seem to recognize Hashem in their entering of a ברית with בנ״י:

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

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

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

(8) They said to Joshua, “We will be your subjects.” But Joshua asked them, “Who are you and where do you come from?” (9) They replied, “Your servants have come from a very distant country, because of the fame of the LORD your God. For we heard the report of Him: of all that He did in Egypt, (10) and of all that He did to the two Amorite kings on the other side of the Jordan, King Sihon of Heshbon and King Og of Bashan who lived in Ashtaroth. (11) So our elders and all the inhabitants of our country instructed us as follows, ‘Take along provisions for a trip, and go to them and say: We will be your subjects; come make a pact with us.’

(24) But they replied to Joshua, “You see, your servants had heard that the LORD your God had promised His servant Moses to give you the whole land and to wipe out all the inhabitants of the country on your account; so we were in great fear for our lives on your account. That is why we did this thing. (25) And now we are at your mercy; do with us what you consider right and proper.” (26) And he did so; he saved them from being killed by the Israelites. (27) That day Joshua made them hewers of wood and drawers of water—as they still are—for the community and for the altar of the LORD, in the place that He would choose.

(3) So King Adoni-zedek of Jerusalem sent this message to King Hoham of Hebron, King Piram of Jarmuth, King Japhia of Lachish, and King Debir of Eglon: (4) “Come up and help me defeat Gibeon; for it has come to terms with Joshua and the Israelites.” (5) The five Amorite kings—the king of Jerusalem, the king of Hebron, the king of Jarmuth, the king of Lachish, and the king of Eglon, with all their armies—joined forces and marched on Gibeon, and encamped against it and attacked it. (6) The people of Gibeon thereupon sent this message to Joshua in the camp at Gilgal: “Do not fail your servants; come up quickly and aid us and deliver us, for all the Amorite kings of the hill country have gathered against us.” (7) So Joshua marched up from Gilgal with his whole fighting force, all the trained warriors. (8) The LORD said to Joshua, “Do not be afraid of them, for I will deliver them into your hands; not one of them shall withstand you.”

Case #2: The שומרונים are allowed to live peaceably in the land because they go from worshipping ע״ז to a system with many gods but recognition of Hashem at the top:
(כד) וַיָּבֵ֣א מֶֽלֶךְ־אַשּׁ֡וּר מִבָּבֶ֡ל וּ֠מִכּוּ֠תָה וּמֵעַוָּ֤א וּמֵֽחֲמָת֙ וּסְפַרְוַ֔יִם וַיֹּ֙שֶׁב֙ בְּעָרֵ֣י שֹֽׁמְר֔וֹן תַּ֖חַת בְּנֵ֣י יִשְׂרָאֵ֑ל וַיִּֽרְשׁוּ֙ אֶת־שֹׁ֣מְר֔וֹן וַיֵּֽשְׁב֖וּ בְּעָרֶֽיהָ׃ (כה) וַיְהִ֗י בִּתְחִלַּת֙ שִׁבְתָּ֣ם שָׁ֔ם לֹ֥א יָרְא֖וּ אֶת־ה' וַיְשַׁלַּ֨ח ה' בָּהֶם֙ אֶת־הָ֣אֲרָי֔וֹת וַיִּֽהְי֥וּ הֹרְגִ֖ים בָּהֶֽם׃ (כו) וַיֹּאמְר֗וּ לְמֶ֣לֶךְ אַשּׁוּר֮ לֵאמֹר֒ הַגּוֹיִ֗ם אֲשֶׁ֤ר הִגְלִ֙יתָ֙ וַתּ֙וֹשֶׁב֙ בְּעָרֵ֣י שֹׁמְר֔וֹן לֹ֣א יָֽדְע֔וּ אֶת־מִשְׁפַּ֖ט אֱלֹקֵ֣י הָאָ֑רֶץ וַיְשַׁלַּח־בָּ֣ם אֶת־הָאֲרָי֗וֹת וְהִנָּם֙ מְמִיתִ֣ים אוֹתָ֔ם כַּאֲשֶׁר֙ אֵינָ֣ם יֹדְעִ֔ים אֶת־מִשְׁפַּ֖ט אֱלֹקֵ֥י הָאָֽרֶץ׃ (כז) וַיְצַ֨ו מֶֽלֶךְ־אַשּׁ֜וּר לֵאמֹ֗ר הֹלִ֤יכוּ שָׁ֙מָּה֙ אֶחָ֤ד מֵהַכֹּֽהֲנִים֙ אֲשֶׁ֣ר הִגְלִיתֶ֣ם מִשָּׁ֔ם וְיֵלְכ֖וּ וְיֵ֣שְׁבוּ שָׁ֑ם וְיֹרֵ֕ם אֶת־מִשְׁפַּ֖ט אֱלֹקֵ֥י הָאָֽרֶץ׃ (כח) וַיָּבֹ֞א אֶחָ֣ד מֵהַכֹּהֲנִ֗ים אֲשֶׁ֤ר הִגְלוּ֙ מִשֹּׁ֣מְר֔וֹן וַיֵּ֖שֶׁב בְּבֵֽית־אֵ֑ל וַֽיְהִי֙ מוֹרֶ֣ה אֹתָ֔ם אֵ֖יךְ יִֽירְא֥וּ אֶת־ה'׃ (כט) וַיִּהְי֣וּ עֹשִׂ֔ים גּ֥וֹי גּ֖וֹי אֱלֹקָ֑יו וַיַּנִּ֣יחוּ ׀ בְּבֵ֣ית הַבָּמ֗וֹת אֲשֶׁ֤ר עָשׂוּ֙ הַשֹּׁ֣מְרֹנִ֔ים גּ֥וֹי גּוֹי֙ בְּעָ֣רֵיהֶ֔ם אֲשֶׁ֛ר הֵ֥ם יֹשְׁבִ֖ים שָֽׁם׃ (ל) וְאַנְשֵׁ֣י בָבֶ֗ל עָשׂוּ֙ אֶת־סֻכּ֣וֹת בְּנ֔וֹת וְאַנְשֵׁי־כ֔וּת עָשׂ֖וּ אֶת־נֵֽרְגַ֑ל וְאַנְשֵׁ֥י חֲמָ֖ת עָשׂ֥וּ אֶת־אֲשִׁימָֽא׃ (לא) וְהָעַוִּ֛ים עָשׂ֥וּ נִבְחַ֖ז וְאֶת־תַּרְתָּ֑ק וְהַסְפַרְוִ֗ים שֹׂרְפִ֤ים אֶת־בְּנֵיהֶם֙ בָּאֵ֔שׁ לְאַדְרַמֶּ֥לֶךְ וַֽעֲנַמֶּ֖לֶךְ אלה [אֱלֹהֵ֥י] ספרים [סְפַרְוָֽיִם׃] (לב) וַיִּהְי֥וּ יְרֵאִ֖ים אֶת־ה' וַיַּעֲשׂ֨וּ לָהֶ֤ם מִקְצוֹתָם֙ כֹּהֲנֵ֣י בָמ֔וֹת וַיִּהְי֛וּ עֹשִׂ֥ים לָהֶ֖ם בְּבֵ֥ית הַבָּמֽוֹת׃ (לג) אֶת־ה' הָי֣וּ יְרֵאִ֑ים וְאֶת־אֱלֹֽהֵיהֶם֙ הָי֣וּ עֹֽבְדִ֔ים כְּמִשְׁפַּט֙ הַגּוֹיִ֔ם אֲשֶׁר־הִגְל֥וּ אֹתָ֖ם מִשָּֽׁם׃ (לד) עַ֣ד הַיּ֤וֹם הַזֶּה֙ הֵ֣ם עֹשִׂ֔ים כַּמִּשְׁפָּטִ֖ים הָרִֽאשֹׁנִ֑ים אֵינָ֤ם יְרֵאִים֙ אֶת־ה' וְאֵינָ֣ם עֹשִׂ֗ים כְּחֻקֹּתָם֙ וּכְמִשְׁפָּטָ֔ם וְכַתּוֹרָ֣ה וְכַמִּצְוָ֗ה אֲשֶׁ֨ר צִוָּ֤ה ה' אֶת־בְּנֵ֣י יַעֲקֹ֔ב אֲשֶׁר־שָׂ֥ם שְׁמ֖וֹ יִשְׂרָאֵֽל׃ (לה) וַיִּכְרֹ֨ת ה' אִתָּם֙ בְּרִ֔ית וַיְצַוֵּ֣ם לֵאמֹ֔ר לֹ֥א תִֽירְא֖וּ אֱלֹקִ֣ים אֲחֵרִ֑ים וְלֹא־תִשְׁתַּחֲו֣וּ לָהֶ֔ם וְלֹ֣א תַעַבְד֔וּם וְלֹ֥א תִזְבְּח֖וּ לָהֶֽם׃ (לו) כִּ֣י אִֽם־אֶת־ה' אֲשֶׁר֩ הֶעֱלָ֨ה אֶתְכֶ֜ם מֵאֶ֧רֶץ מִצְרַ֛יִם בְּכֹ֧חַ גָּד֛וֹל וּבִזְר֥וֹעַ נְטוּיָ֖ה אֹת֣וֹ תִירָ֑אוּ וְל֥וֹ תִֽשְׁתַּחֲו֖וּ וְל֥וֹ תִזְבָּֽחוּ׃ (לז) וְאֶת־הַחֻקִּ֨ים וְאֶת־הַמִּשְׁפָּטִ֜ים וְהַתּוֹרָ֤ה וְהַמִּצְוָה֙ אֲשֶׁ֣ר כָּתַ֣ב לָכֶ֔ם תִּשְׁמְר֥וּן לַעֲשׂ֖וֹת כָּל־הַיָּמִ֑ים וְלֹ֥א תִֽירְא֖וּ אֱלֹקִ֥ים אֲחֵרִֽים׃ (לח) וְהַבְּרִ֛ית אֲשֶׁר־כָּרַ֥תִּי אִתְּכֶ֖ם לֹ֣א תִשְׁכָּ֑חוּ וְלֹ֥א תִֽירְא֖וּ אֱלֹקִ֥ים אֲחֵרִֽים׃ (לט) כִּ֛י אִֽם־אֶת־ה' אֱלֹקֵיכֶ֖ם תִּירָ֑אוּ וְהוּא֙ יַצִּ֣יל אֶתְכֶ֔ם מִיַּ֖ד כָּל־אֹיְבֵיכֶֽם׃ (מ) וְלֹ֖א שָׁמֵ֑עוּ כִּ֛י אִֽם־כְּמִשְׁפָּטָ֥ם הָֽרִאשׁ֖וֹן הֵ֥ם עֹשִֽׂים׃ (מא) וַיִּהְי֣וּ ׀ הַגּוֹיִ֣ם הָאֵ֗לֶּה יְרֵאִים֙ אֶת־ה' וְאֶת־פְּסִֽילֵיהֶ֖ם הָי֣וּ עֹֽבְדִ֑ים גַּם־בְּנֵיהֶ֣ם ׀ וּבְנֵ֣י בְנֵיהֶ֗ם כַּאֲשֶׁ֨ר עָשׂ֤וּ אֲבֹתָם֙ הֵ֣ם עֹשִׂ֔ים עַ֖ד הַיּ֥וֹם הַזֶּֽה׃ (פ)
(24) The king of Assyria brought [people] from Babylon, Cuthah, Avva, Hamath, and Sephar-vaim, and he settled them in the towns of Samaria in place of the Israelites; they took possession of Samaria and dwelt in its towns. (25) When they first settled there, they did not worship the LORD; so the LORD sent lions against them which killed some of them. (26) They said to the king of Assyria: “The nations which you deported and resettled in the towns of Samaria do not know the rules of the God of the land; therefore He has let lions loose against them which are killing them—for they do not know the rules of the God of the land.” (27) The king of Assyria gave an order: “Send there one of the priests whom you have deported; let him go and dwell there, and let him teach them the practices of the God of the land.” (28) So one of the priests whom they had exiled from Samaria came and settled in Bethel; he taught them how to worship the LORD. (29) However, each nation continued to make its own gods and to set them up in the cult places which had been made by the people of Samaria; each nation [set them up] in the towns in which it lived. (30) The Babylonians made Succoth-benoth, and the men of Cuth made Nergal, and the men of Hamath made Ashima, (31) and the Avvites made Nibhaz and Tartak; and the Sepharvites burned their children [as offerings] to Adrammelech and Anamelech, the gods of Sepharvaim. (32) They worshiped the LORD, but they also appointed from their own ranks priests of the shrines, who officiated for them in the cult places. (33) They worshiped the LORD, while serving their own gods according to the practices of the nations from which they had been deported. (34) To this day, they follow their former practices. They do not worship the LORD [properly]. They do not follow the laws and practices, the Teaching and Instruction that the LORD enjoined upon the descendants of Jacob—who was given the name Israel— (35) with whom He made a covenant and whom He commanded: “You shall worship no other gods; you shall not bow down to them nor serve them nor sacrifice to them. (36) You must worship only the LORD your God, who brought you out of the land of Egypt with great might and with an outstretched arm: to Him alone shall you bow down and to Him alone shall you sacrifice. (37) You shall observe faithfully, all your days, the laws and the practices; the Teaching and Instruction that I wrote down for you; do not worship other gods. (38) Do not forget the covenant that I made with you; do not worship other gods. (39) Worship only the LORD your God, and He will save you from the hands of all your enemies.” (40) But they did not obey; they continued their former practices. (41) Those nations worshiped the LORD, but they also served their idols. To this day their children and their children’s children do as their ancestors did.
How non-Jews must act in order to inhabit Eretz Yisrael vs how Jews must act:

The same process the false Kohanim taught these non Jews, because of which God allowed them to live in Eretz Yisrael in peace (since it contained recognition of Hashem as among their gods) was the very cause of the ten tribes expulsion from the land. In other words, what the Jews of the 10 tribes taught these non Jews to do is exactly what got them expelled, but exactly what saved these non-Jews from the same fate.
When this structure of practicing God worship was established by ירבעם מלך ישראל in מלאכים א יב, it was stated to be the cause of the northern kingdom’s downfall and expulsion:
וַיִּוָּעַ֣ץ הַמֶּ֔לֶךְ וַיַּ֕עַשׂ שְׁנֵ֖י עֶגְלֵ֣י זָהָ֑ב וַיֹּ֣אמֶר אֲלֵהֶ֗ם רַב־לָכֶם֙ מֵעֲל֣וֹת יְרוּשָׁלִַ֔ם הִנֵּ֤ה אֱלֹקֶ֙יךָ֙ יִשְׂרָאֵ֔ל אֲשֶׁ֥ר הֶעֱל֖וּךָ מֵאֶ֥רֶץ מִצְרָֽיִם׃
וַיָּ֥שֶׂם אֶת־הָאֶחָ֖ד בְּבֵֽית־אֵ֑ל וְאֶת־הָאֶחָ֖ד נָתַ֥ן בְּדָֽן׃
וַיְהִ֛י הַדָּבָ֥ר הַזֶּ֖ה לְחַטָּ֑את וַיֵּלְכ֥וּ הָעָ֛ם לִפְנֵ֥י הָאֶחָ֖ד עַד־דָּֽן׃
וַיַּ֖עַשׂ אֶת־בֵּ֣ית בָּמ֑וֹת וַיַּ֤עַשׂ כֹּֽהֲנִים֙ מִקְצ֣וֹת הָעָ֔ם אֲשֶׁ֥ר לֹֽא־הָי֖וּ מִבְּנֵ֥י לֵוִֽי׃
...
כִּי֩ הָיֹ֨ה יִהְיֶ֜ה הַדָּבָ֗ר אֲשֶׁ֤ר קָרָא֙ בִּדְבַ֣ר ה' עַל־הַמִּזְבֵּ֖חַ אֲשֶׁ֣ר בְּבֵֽית־אֵ֑ל וְעַל֙ כָּל־בָּתֵּ֣י הַבָּמ֔וֹת אֲשֶׁ֖ר בְּעָרֵ֥י שֹׁמְרֽוֹן׃ (פ)
אַחַר֙ הַדָּבָ֣ר הַזֶּ֔ה לֹֽא־שָׁ֥ב יָרָבְעָ֖ם מִדַּרְכּ֣וֹ הָרָעָ֑ה וַ֠יָּשָׁב וַיַּ֜עַשׂ מִקְצ֤וֹת הָעָם֙ כֹּהֲנֵ֣י בָמ֔וֹת הֶֽחָפֵץ֙ יְמַלֵּ֣א אֶת־יָד֔וֹ וִיהִ֖י כֹּהֲנֵ֥י בָמֽוֹת׃
וַיְהִי֙ בַּדָּבָ֣ר הַזֶּ֔ה לְחַטַּ֖את בֵּ֣ית יָרָבְעָ֑ם וּלְהַכְחִיד֙ וּלְהַשְׁמִ֔יד מֵעַ֖ל פְּנֵ֥י הָאֲדָמָֽה׃ (פ)
Jews may not have intermediaries ("אמצעים", as the Rambam writes as part of the יסוד החמישי of his י״ג עקרים. But this is not yet עבודה זרע, yet is wrong and foolish and leads to it, per משנה תורה, הלכות עבודה זרה וחוקות הגויים 1:1), nor may they challenge the Oneness of God (שמע ישראל ה׳ אלוקינו ה׳ אחד)-- but both seem to be tollerable for non-Jews. Thus the standards for what God will tolerate from Jews in the land is higher than the baseline henotheism expected of non-Jews.
Q: Based on the sources, are the restrictions on how a non-Jew may act in his religious practices for the sake of protecting Jews from their influence, or because God cannot tolerate unacceptable religious practices in His holy land?
Consider what kind of behavior can be tolerated, and what the purpose of that toleration is, as well as the basic outline of God-reverence (for Jews and others) in the Land of Israel presented immediately following שמע:
(י) וְהָיָ֞ה כִּ֥י יְבִיאֲךָ֣ ׀ ה' אֱלֹקֶ֗יךָ אֶל־הָאָ֜רֶץ אֲשֶׁ֨ר נִשְׁבַּ֧ע לַאֲבֹתֶ֛יךָ לְאַבְרָהָ֛ם לְיִצְחָ֥ק וּֽלְיַעֲקֹ֖ב לָ֣תֶת לָ֑ךְ עָרִ֛ים גְּדֹלֹ֥ת וְטֹבֹ֖ת אֲשֶׁ֥ר לֹא־בָנִֽיתָ׃ (יא) וּבָ֨תִּ֜ים מְלֵאִ֣ים כָּל־טוּב֮ אֲשֶׁ֣ר לֹא־מִלֵּאתָ֒ וּבֹרֹ֤ת חֲצוּבִים֙ אֲשֶׁ֣ר לֹא־חָצַ֔בְתָּ כְּרָמִ֥ים וְזֵיתִ֖ים אֲשֶׁ֣ר לֹא־נָטָ֑עְתָּ וְאָכַלְתָּ֖ וְשָׂבָֽעְתָּ׃ (יב) הִשָּׁ֣מֶר לְךָ֔ פֶּן־תִּשְׁכַּ֖ח אֶת־ה' אֲשֶׁ֧ר הוֹצִֽיאֲךָ֛ מֵאֶ֥רֶץ מִצְרַ֖יִם מִבֵּ֥ית עֲבָדִֽים׃ (יג) אֶת־ה' אֱלֹקֶ֛יךָ תִּירָ֖א וְאֹת֣וֹ תַעֲבֹ֑ד וּבִשְׁמ֖וֹ תִּשָּׁבֵֽעַ׃ (יד) לֹ֣א תֵֽלְכ֔וּן אַחֲרֵ֖י אֱלֹקִ֣ים אֲחֵרִ֑ים מֵאֱלֹקֵי֙ הָֽעַמִּ֔ים אֲשֶׁ֖ר סְבִיבוֹתֵיכֶֽם׃ (טו) כִּ֣י אֵ֥ל קַנָּ֛א ה' אֱלֹקֶ֖יךָ בְּקִרְבֶּ֑ךָ פֶּן־יֶ֠חֱרֶה אַף־ה' אֱלֹקֶ֙יךָ֙ בָּ֔ךְ וְהִשְׁמִ֣ידְךָ֔ מֵעַ֖ל פְּנֵ֥י הָאֲדָמָֽה׃ (ס)
(10) When the LORD your God brings you into the land that He swore to your fathers, Abraham, Isaac, and Jacob, to assign to you—great and flourishing cities that you did not build, (11) houses full of all good things that you did not fill, hewn cisterns that you did not hew, vineyards and olive groves that you did not plant—and you eat your fill, (12) take heed that you do not forget the LORD who freed you from the land of Egypt, the house of bondage. (13) Revere only the LORD your God and worship Him alone, and swear only by His name. (14) Do not follow other gods, any gods of the peoples about you— (15) for the LORD your God in your midst is an impassioned God—lest the anger of the LORD your God blaze forth against you and He wipe you off the face of the earth.
Additional halachik requirements of גרים living in ארץ ישראל:
Gerim must not eat hametz during Pesach (Exodus 12:19).
Gerim must “afflict their souls” and refrain from work on Yom Kippur (Lev. 16:29).
Gerim must not worship other Gods (Lev. 17:8-9).
Gerim must not eat blood, just like Israelites (Lev. 17:10).
Leviticus 18 lists an entire series of sexual prohibitions and concludes that they apply both to the citizen and to the ger (Lev. 18:26).
Gerim may not sacrifice their children to Molech (Lev. 20:1-5).
Gerim may not curse God (Lev. 24:16).
Gerim who become ritually impure must be purified (Numbers 19:10).
Gerim may not commit murder (Numbers 35:15 ff.)
5) The presence of (acceptable) non-Jews in ארץ ישראל is assumed as a given (as individuals, not as a controlling group), and they must be treated fairly
(כא) לֹ֣א תֹאכְל֣וּ כָל־נְ֠בֵלָה לַגֵּ֨ר אֲשֶׁר־בִּשְׁעָרֶ֜יךָ תִּתְּנֶ֣נָּה וַאֲכָלָ֗הּ א֤וֹ מָכֹר֙ לְנָכְרִ֔י כִּ֣י עַ֤ם קָדוֹשׁ֙ אַתָּ֔ה לַה' אֱלֹקֶ֑יךָ לֹֽא־תְבַשֵּׁ֥ל גְּדִ֖י בַּחֲלֵ֥ב אִמּֽוֹ׃ (פ)
(21) You shall not eat anything that has died a natural death; give it to the stranger in your community to eat, or you may sell it to a foreigner. For you are a people consecrated to the LORD your God. You shall not boil a kid in its mother’s milk.
(יד) וְכִֽי־יָגוּר֩ אִתְּכֶ֨ם גֵּ֜ר א֤וֹ אֲשֶֽׁר־בְּתֽוֹכְכֶם֙ לְדֹרֹ֣תֵיכֶ֔ם וְעָשָׂ֛ה אִשֵּׁ֥ה רֵֽיחַ־נִיחֹ֖חַ לַה' כַּאֲשֶׁ֥ר תַּעֲשׂ֖וּ כֵּ֥ן יַעֲשֶֽׂה׃ (טו) הַקָּהָ֕ל חֻקָּ֥ה אַחַ֛ת לָכֶ֖ם וְלַגֵּ֣ר הַגָּ֑ר חֻקַּ֤ת עוֹלָם֙ לְדֹרֹ֣תֵיכֶ֔ם כָּכֶ֛ם כַּגֵּ֥ר יִהְיֶ֖ה לִפְנֵ֥י ה'׃ (טז) תּוֹרָ֥ה אַחַ֛ת וּמִשְׁפָּ֥ט אֶחָ֖ד יִהְיֶ֣ה לָכֶ֑ם וְלַגֵּ֖ר הַגָּ֥ר אִתְּכֶֽם׃ (פ)
(14) And when, throughout the ages, a stranger who has taken up residence with you, or one who lives among you, would present an offering by fire of pleasing odor to the LORD—as you do, so shall it be done by (15) the rest of the congregation. There shall be one law for you and for the resident stranger; it shall be a law for all time throughout the ages. You and the stranger shall be alike before the LORD; (16) the same ritual and the same rule shall apply to you and to the stranger who resides among you.
(מט) תּוֹרָ֣ה אַחַ֔ת יִהְיֶ֖ה לָֽאֶזְרָ֑ח וְלַגֵּ֖ר הַגָּ֥ר בְּתוֹכְכֶֽם׃
(49) There shall be one law for the citizen and for the stranger who dwells among you.
(לג) וְכִֽי־יָג֧וּר אִתְּךָ֛ גֵּ֖ר בְּאַרְצְכֶ֑ם לֹ֥א תוֹנ֖וּ אֹתֽוֹ׃ (לד) כְּאֶזְרָ֣ח מִכֶּם֩ יִהְיֶ֨ה לָכֶ֜ם הַגֵּ֣ר ׀ הַגָּ֣ר אִתְּכֶ֗ם וְאָהַבְתָּ֥ לוֹ֙ כָּמ֔וֹךָ כִּֽי־גֵרִ֥ים הֱיִיתֶ֖ם בְּאֶ֣רֶץ מִצְרָ֑יִם אֲנִ֖י ה' אֱלֹקֵיכֶֽם׃
(33) When a stranger resides with you in your land, you shall not wrong him. (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 LORD am your God.
How Gerim must Halachicly be treated:
Gerim must rest on Shabbat, exactly like Jews (Exodus 20:10; 23:12).
Gerim may collect the gleanings (leket) from the field, alongside of poor Israelites (Lev. 23:22).
Gerim must be treated equally in a court of law (Deut. 1:16 and cf. Lev. 24:22; Numbers 35:15).
Gerim may eat from the tithe exactly like the widow and the orphan (Deut. 14:29).
Gerim who are day laborers may not be abused. You must pay them their wages on the same day (Deut. 24:14-15).
Case of accepted non-Jews #1: The קנים (descendants of יתרו) are welcomed to live amongst בני ישראל in ארץ ישראל, and cared for under their auspices. The רכבים (Kenite descendants of יונדב) are uplifted for their commitment to God and honorable behavior.
(ט) וַיִּ֣חַדְּ יִתְר֔וֹ עַ֚ל כָּל־הַטּוֹבָ֔ה אֲשֶׁר־עָשָׂ֥ה ה' לְיִשְׂרָאֵ֑ל אֲשֶׁ֥ר הִצִּיל֖וֹ מִיַּ֥ד מִצְרָֽיִם׃ (י) וַיֹּאמֶר֮ יִתְרוֹ֒ בָּר֣וּךְ ה' אֲשֶׁ֨ר הִצִּ֥יל אֶתְכֶ֛ם מִיַּ֥ד מִצְרַ֖יִם וּמִיַּ֣ד פַּרְעֹ֑ה אֲשֶׁ֤ר הִצִּיל֙ אֶת־הָעָ֔ם מִתַּ֖חַת יַד־מִצְרָֽיִם׃ (יא) עַתָּ֣ה יָדַ֔עְתִּי כִּֽי־גָד֥וֹל ה' מִכָּל־הָאֱלֹקִ֑ים כִּ֣י בַדָּבָ֔ר אֲשֶׁ֥ר זָד֖וּ עֲלֵיהֶֽם׃ (יב) וַיִּקַּ֞ח יִתְר֨וֹ חֹתֵ֥ן מֹשֶׁ֛ה עֹלָ֥ה וּזְבָחִ֖ים לֵֽאלֹקִ֑ים וַיָּבֹ֨א אַהֲרֹ֜ן וְכֹ֣ל ׀ זִקְנֵ֣י יִשְׂרָאֵ֗ל לֶאֱכָל־לֶ֛חֶם עִם־חֹתֵ֥ן מֹשֶׁ֖ה לִפְנֵ֥י הָאֱלֹקִֽים׃
(9) And Jethro rejoiced over all the kindness that the LORD had shown Israel when He delivered them from the Egyptians. (10) “Blessed be the LORD,” Jethro said, “who delivered you from the Egyptians and from Pharaoh, and who delivered the people from under the hand of the Egyptians. (11) Now I know that the LORD is greater than all gods, yes, by the result of their very schemes against [the people].” (12) And Jethro, Moses’ father-in-law, brought a burnt offering and sacrifices for God; and Aaron came with all the elders of Israel to partake of the meal before God with Moses’ father-in-law.
(טז) וּבְנֵ֣י קֵינִי֩ חֹתֵ֨ן מֹשֶׁ֜ה עָל֨וּ מֵעִ֤יר הַתְּמָרִים֙ אֶת־בְּנֵ֣י יְהוּדָ֔ה מִדְבַּ֣ר יְהוּדָ֔ה אֲשֶׁ֖ר בְּנֶ֣גֶב עֲרָ֑ד וַיֵּ֖לֶךְ וַיֵּ֥שֶׁב אֶת־הָעָֽם׃
(16) The descendants of the Kenite, the father-in-law of Moses, went up with the Judites from the City of Palms to the wilderness of Judah; and they went and settled among the people in the Negeb of Arad.
(יא) וְחֶ֤בֶר הַקֵּינִי֙ נִפְרָ֣ד מִקַּ֔יִן מִבְּנֵ֥י חֹבָ֖ב חֹתֵ֣ן מֹשֶׁ֑ה וַיֵּ֣ט אָהֳל֔וֹ עַד־אֵל֥וֹן בצענים [בְּצַעֲנַנִּ֖ים] אֲשֶׁ֥ר אֶת־קֶֽדֶשׁ׃
(11) Now Heber the Kenite had separated from the other Kenites, descendants of Hobab, father-in-law of Moses, and had pitched his tent at Elon-bezaanannim, which is near Kedesh.
(ה) וַיָּבֹ֥א שָׁא֖וּל עַד־עִ֣יר עֲמָלֵ֑ק וַיָּ֖רֶב בַּנָּֽחַל׃ (ו) וַיֹּ֣אמֶר שָׁא֣וּל אֶֽל־הַקֵּינִ֡י לְכוּ֩ סֻּ֨רוּ רְד֜וּ מִתּ֣וֹךְ עֲמָלֵקִ֗י פֶּן־אֹֽסִפְךָ֙ עִמּ֔וֹ וְאַתָּ֞ה עָשִׂ֤יתָה חֶ֙סֶד֙ עִם־כָּל־בְּנֵ֣י יִשְׂרָאֵ֔ל בַּעֲלוֹתָ֖ם מִמִּצְרָ֑יִם וַיָּ֥סַר קֵינִ֖י מִתּ֥וֹךְ עֲמָלֵֽק׃
(5) Then Saul advanced as far as the city of Amalek and lay in wait in the wadi. (6) Saul said to the Kenites, “Come, withdraw at once from among the Amalekites, that I may not destroy you along with them; for you showed kindness to all the Israelites when they left Egypt.” So the Kenites withdrew from among the Amalekites.
(כו) וַיָּבֹ֤א דָוִד֙ אֶל־צִ֣קְלַ֔ג וַיְשַׁלַּ֧ח מֵֽהַשָּׁלָ֛ל לְזִקְנֵ֥י יְהוּדָ֖ה לְרֵעֵ֣הוּ לֵאמֹ֑ר הִנֵּ֤ה לָכֶם֙ בְּרָכָ֔ה מִשְּׁלַ֖ל אֹיְבֵ֥י ה'׃ (כז) לַאֲשֶׁ֧ר בְּבֵֽית־אֵ֛ל וְלַאֲשֶׁ֥ר בְּרָמֽוֹת־נֶ֖גֶב וְלַאֲשֶׁ֥ר בְּיַתִּֽר׃ (כח) וְלַאֲשֶׁ֧ר בַּעֲרֹעֵ֛ר וְלַאֲשֶׁ֥ר בְּשִֽׂפְמ֖וֹת וְלַאֲשֶׁ֥ר בְּאֶשְׁתְּמֹֽעַ׃ (ס) (כט) וְלַאֲשֶׁ֣ר בְּרָכָ֗ל וְלַֽאֲשֶׁר֙ בְּעָרֵ֣י הַיְּרַחְמְאֵלִ֔י וְלַאֲשֶׁ֖ר בְּעָרֵ֥י הַקֵּינִֽי׃
(26) When David reached Ziklag, he sent some of the spoil to the elders of Judah [and] to his friends, saying, “This is a present for you from our spoil of the enemies of the LORD.” (27) [He sent the spoil to the elders] in Bethel, Ramoth-negeb, and Jattir; (28) in Aroer, Siphmoth, and Eshtemoa; (29) in Racal, in the towns of the Jerahmeelites, and in the towns of the Kenites;
(טו) וַיֵּ֣לֶךְ מִשָּׁ֡ם וַיִּמְצָ֣א אֶת־יְהוֹנָדָב֩ בֶּן־רֵכָ֨ב לִקְרָאת֜וֹ וַֽיְבָרְכֵ֗הוּ וַיֹּ֨אמֶר אֵלָ֜יו הֲיֵ֧שׁ אֶת־לְבָבְךָ֣ יָשָׁ֗ר כַּאֲשֶׁ֤ר לְבָבִי֙ עִם־לְבָבֶ֔ךָ וַיֹּ֨אמֶר יְהוֹנָדָ֥ב יֵ֛שׁ וָיֵ֖שׁ תְּנָ֣ה אֶת־יָדֶ֑ךָ וַיִּתֵּ֣ן יָד֔וֹ וַיַּעֲלֵ֥הוּ אֵלָ֖יו אֶל־הַמֶּרְכָּבָֽה׃ (טז) וַיֹּ֙אמֶר֙ לְכָ֣ה אִתִּ֔י וּרְאֵ֖ה בְּקִנְאָתִ֣י לַה' וַיַּרְכִּ֥בוּ אֹת֖וֹ בְּרִכְבּֽוֹ׃ (יז) וַיָּבֹא֙ שֹֽׁמְר֔וֹן וַ֠יַּךְ אֶת־כָּל־הַנִּשְׁאָרִ֧ים לְאַחְאָ֛ב בְּשֹׁמְר֖וֹן עַד־הִשְׁמִיד֑וֹ כִּדְבַ֣ר ה' אֲשֶׁ֥ר דִּבֶּ֖ר אֶל־אֵלִיָּֽהוּ׃ (פ) (יח) וַיִּקְבֹּ֤ץ יֵהוּא֙ אֶת־כָּל־הָעָ֔ם וַיֹּ֣אמֶר אֲלֵהֶ֔ם אַחְאָ֕ב עָבַ֥ד אֶת־הַבַּ֖עַל מְעָ֑ט יֵה֖וּא יַעַבְדֶ֥נּוּ הַרְבֵּֽה׃ (יט) וְעַתָּ֣ה כָל־נְבִיאֵ֣י הַבַּ֡עַל כָּל־עֹבְדָ֣יו וְכָל־כֹּהֲנָיו֩ קִרְא֨וּ אֵלַ֜י אִ֣ישׁ אַל־יִפָּקֵ֗ד כִּי֩ זֶ֨בַח גָּד֥וֹל לִי֙ לַבַּ֔עַל כֹּ֥ל אֲשֶׁר־יִפָּקֵ֖ד לֹ֣א יִֽחְיֶ֑ה וְיֵהוּא֙ עָשָׂ֣ה בְעָקְבָּ֔ה לְמַ֥עַן הַאֲבִ֖יד אֶת־עֹבְדֵ֥י הַבָּֽעַל׃ (כ) וַיֹּ֣אמֶר יֵה֗וּא קַדְּשׁ֧וּ עֲצָרָ֛ה לַבַּ֖עַל וַיִּקְרָֽאוּ׃ (כא) וַיִּשְׁלַ֤ח יֵהוּא֙ בְּכָל־יִשְׂרָאֵ֔ל וַיָּבֹ֙אוּ֙ כָּל־עֹבְדֵ֣י הַבַּ֔עַל וְלֹֽא־נִשְׁאַ֥ר אִ֖ישׁ אֲשֶׁ֣ר לֹֽא־בָ֑א וַיָּבֹ֙אוּ֙ בֵּ֣ית הַבַּ֔עַל וַיִּמָּלֵ֥א בֵית־הַבַּ֖עַל פֶּ֥ה לָפֶֽה׃ (כב) וַיֹּ֗אמֶר לַֽאֲשֶׁר֙ עַל־הַמֶּלְתָּחָ֔ה הוֹצֵ֣א לְב֔וּשׁ לְכֹ֖ל עֹבְדֵ֣י הַבָּ֑עַל וַיֹּצֵ֥א לָהֶ֖ם הַמַּלְבּֽוּשׁ׃ (כג) וַיָּבֹ֥א יֵה֛וּא וִיהוֹנָדָ֥ב בֶּן־רֵכָ֖ב בֵּ֣ית הַבָּ֑עַל וַיֹּ֜אמֶר לְעֹבְדֵ֣י הַבַּ֗עַל חַפְּשׂ֤וּ וּרְאוּ֙ פֶּן־יֶשׁ־פֹּ֤ה עִמָּכֶם֙ מֵעַבְדֵ֣י ה' כִּ֛י אִם־עֹבְדֵ֥י הַבַּ֖עַל לְבַדָּֽם׃ (כד) וַיָּבֹ֕אוּ לַעֲשׂ֖וֹת זְבָחִ֣ים וְעֹל֑וֹת וְיֵה֞וּא שָׂם־ל֤וֹ בַחוּץ֙ שְׁמֹנִ֣ים אִ֔ישׁ וַיֹּ֗אמֶר הָאִ֤ישׁ אֲשֶׁר־יִמָּלֵט֙ מִן־הָאֲנָשִׁ֗ים אֲשֶׁ֤ר אֲנִי֙ מֵבִ֣יא עַל־יְדֵיכֶ֔ם נַפְשׁ֖וֹ תַּ֥חַת נַפְשֽׁוֹ׃ (כה) וַיְהִ֞י כְּכַלֹּת֣וֹ ׀ לַעֲשׂ֣וֹת הָעֹלָ֗ה וַיֹּ֣אמֶר יֵ֠הוּא לָרָצִ֨ים וְלַשָּׁלִשִׁ֜ים בֹּ֤אוּ הַכּוּם֙ אִ֣ישׁ אַל־יֵצֵ֔א וַיַּכּ֖וּם לְפִי־חָ֑רֶב וַיַּשְׁלִ֗כוּ הָֽרָצִים֙ וְהַשָּׁ֣לִשִׁ֔ים וַיֵּלְכ֖וּ עַד־עִ֥יר בֵּית־הַבָּֽעַל׃ (כו) וַיֹּצִ֛אוּ אֶת־מַצְּב֥וֹת בֵּית־הַבַּ֖עַל וַֽיִּשְׂרְפֽוּהָ׃ (כז) וַֽיִּתְּצ֔וּ אֵ֖ת מַצְּבַ֣ת הַבָּ֑עַל וַֽיִּתְּצוּ֙ אֶת־בֵּ֣ית הַבַּ֔עַל וַיְשִׂמֻ֥הוּ למחראות [לְמֽוֹצָא֖וֹת] עַד־הַיּֽוֹם׃ (כח) וַיַּשְׁמֵ֥ד יֵה֛וּא אֶת־הַבַּ֖עַל מִיִּשְׂרָאֵֽל׃
(15) He went on from there, and he met Jehonadab son of Rechab coming toward him. He greeted him and said to him, “Are you as wholehearted with me as I am with you?” “I am,” Jehonadab replied. “If so,” [said Jehu,] “give me your hand.” He gave him his hand and [Jehu] helped him into the chariot. (16) “Come with me,” he said, “and see my zeal for the LORD.” And he was taken along in the chariot. (17) Arriving in Samaria, [Jehu] struck down all the survivors of [the House of] Ahab in Samaria, until he wiped it out, fulfilling the word that the LORD had spoken to Elijah. (18) Jehu assembled all the people and said to them, “Ahab served Baal little; Jehu shall serve him much! (19) Therefore, summon to me all the prophets of Baal, all his worshipers, and all his priests: let no one fail to come, for I am going to hold a great sacrifice for Baal. Whoever fails to come shall forfeit his life.” Jehu was acting with guile in order to exterminate the worshipers of Baal. (20) Jehu gave orders to convoke a solemn assembly for Baal, and one was proclaimed. (21) Jehu sent word throughout Israel, and all the worshipers of Baal came, not a single one remained behind. They came into the temple of Baal, and the temple of Baal was filled from end to end. (22) He said to the man in charge of the wardrobe, “Bring out the vestments for all the worshipers of Baal”; and he brought vestments out for them. (23) Then Jehu and Jehonadab son of Rechab came into the temple of Baal, and they said to the worshipers of Baal, “Search and make sure that there are no worshipers of the LORD among you, but only worshipers of Baal.” (24) So they went in to offer sacrifices and burnt offerings. But Jehu had stationed eighty of his men outside and had said, “Whoever permits the escape of a single one of the men I commit to your charge shall forfeit life for life.” (25) When Jehu had finished presenting the burnt offering, he said to the guards and to the officers, “Come in and strike them down; let no man get away!” The guards and the officers struck them down with the sword and left them lying where they were; then they proceeded to the interior of the temple of Baal. (26) They brought out the pillars of the temple of Baal and burned them. (27) They destroyed the pillar of Baal, and they tore down the temple of Baal and turned it into latrines, as is still the case. (28) Thus Jehu eradicated the Baal from Israel.

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

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

(3) So I took Jaazaniah son of Jeremiah son of Habazziniah, and his brothers, all his sons, and the whole household of the Rechabites; (4) and I brought them to the House of the LORD, to the chamber of the sons of Hanan son of Igdaliah, the man of God, which is next to the chamber of the officials and above the chamber of Maaseiah son of Shallum, the guardian of the threshold. (5) I set bowls full of wine and cups before the men of the house of the Rechabites, and said to them, “Have some wine.” (6) They replied, “We will not drink wine, for our ancestor, Jonadab son of Rechab, commanded us: ‘You shall never drink wine, either you or your children. (7) Nor shall you build houses or sow fields or plant vineyards, nor shall you own such things; but you shall live in tents all your days, so that you may live long upon the land where you sojourn.’

(18) And to the family of the Rechabites Jeremiah said: “Thus said the LORD of Hosts, the God of Israel: Because you have obeyed the charge of your ancestor Jonadab and kept all his commandments, and done all that he enjoined upon you, (19) assuredly, thus said the LORD of Hosts, the God of Israel: There shall never cease to be a man of the line of Jonadab son of Rechab standing before Me.”

(יח) וּלְבֵ֨ית הָרֵכָבִ֜ים אָמַ֣ר יִרְמְיָ֗הוּ כֹּֽה־אָמַ֞ר ה' צְבָאוֹת֙ אֱלֹקֵ֣י יִשְׂרָאֵ֔ל יַ֚עַן אֲשֶׁ֣ר שְׁמַעְתֶּ֔ם עַל־מִצְוַ֖ת יְהוֹנָדָ֣ב אֲבִיכֶ֑ם וַֽתִּשְׁמְרוּ֙ אֶת־כָּל־מִצְוֺתָ֔יו וַֽתַּעֲשׂ֔וּ כְּכֹ֥ל אֲשֶׁר־צִוָּ֖ה אֶתְכֶֽם׃ (ס) (יט) לָכֵ֗ן כֹּ֥ה אָמַ֛ר ה' צְבָא֖וֹת אֱלֹקֵ֣י יִשְׂרָאֵ֑ל לֹֽא־יִכָּרֵ֨ת אִ֜ישׁ לְיוֹנָדָ֧ב בֶּן־רֵכָ֛ב עֹמֵ֥ד לְפָנַ֖י כָּל־הַיָּמִֽים׃ (פ)
(18) And to the family of the Rechabites Jeremiah said: “Thus said the LORD of Hosts, the God of Israel: Because you have obeyed the charge of your ancestor Jonadab and kept all his commandments, and done all that he enjoined upon you, (19) assuredly, thus said the LORD of Hosts, the God of Israel: There shall never cease to be a man of the line of Jonadab son of Rechab standing before Me.”
Case of accepted non-Jews #2: רכב recognizes God, accepts בנ״י's rule, does a kind act for בנ״י, and is accordingly protected and allowed to live amongst בנ״י
(ח) וְהֵ֖מָּה טֶ֣רֶם יִשְׁכָּב֑וּן וְהִ֛יא עָלְתָ֥ה עֲלֵיהֶ֖ם עַל־הַגָּֽג׃ (ט) וַתֹּ֙אמֶר֙ אֶל־הָ֣אֲנָשִׁ֔ים יָדַ֕עְתִּי כִּֽי־נָתַ֧ן ה' לָכֶ֖ם אֶת־הָאָ֑רֶץ וְכִֽי־נָפְלָ֤ה אֵֽימַתְכֶם֙ עָלֵ֔ינוּ וְכִ֥י נָמֹ֛גוּ כָּל־יֹשְׁבֵ֥י הָאָ֖רֶץ מִפְּנֵיכֶֽם׃ (י) כִּ֣י שָׁמַ֗עְנוּ אֵ֠ת אֲשֶׁר־הוֹבִ֨ישׁ ה' אֶת־מֵ֤י יַם־סוּף֙ מִפְּנֵיכֶ֔ם בְּצֵאתְכֶ֖ם מִמִּצְרָ֑יִם וַאֲשֶׁ֣ר עֲשִׂיתֶ֡ם לִשְׁנֵי֩ מַלְכֵ֨י הָאֱמֹרִ֜י אֲשֶׁ֨ר בְּעֵ֤בֶר הַיַּרְדֵּן֙ לְסִיחֹ֣ן וּלְע֔וֹג אֲשֶׁ֥ר הֶחֱרַמְתֶּ֖ם אוֹתָֽם׃ (יא) וַנִּשְׁמַע֙ וַיִּמַּ֣ס לְבָבֵ֔נוּ וְלֹא־קָ֨מָה ע֥וֹד ר֛וּחַ בְּאִ֖ישׁ מִפְּנֵיכֶ֑ם כִּ֚י ה' אֱלֹֽקֵיכֶ֔ם ה֤וּא אֱלֹקִים֙ בַּשָּׁמַ֣יִם מִמַּ֔עַל וְעַל־הָאָ֖רֶץ מִתָּֽחַת׃ (יב) וְעַתָּ֗ה הִשָּֽׁבְעוּ־נָ֥א לִי֙ בַּֽה' כִּי־עָשִׂ֥יתִי עִמָּכֶ֖ם חָ֑סֶד וַעֲשִׂיתֶ֨ם גַּם־אַתֶּ֜ם עִם־בֵּ֤ית אָבִי֙ חֶ֔סֶד וּנְתַתֶּ֥ם לִ֖י א֥וֹת אֱמֶֽת׃ (יג) וְהַחֲיִתֶ֞ם אֶת־אָבִ֣י וְאֶת־אִמִּ֗י וְאֶת־אַחַי֙ וְאֶת־אחותי [אַחְיוֹתַ֔י] וְאֵ֖ת כָּל־אֲשֶׁ֣ר לָהֶ֑ם וְהִצַּלְתֶּ֥ם אֶת־נַפְשֹׁתֵ֖ינוּ מִמָּֽוֶת׃ (יד) וַיֹּ֧אמְרוּ לָ֣הּ הָאֲנָשִׁ֗ים נַפְשֵׁ֤נוּ תַחְתֵּיכֶם֙ לָמ֔וּת אִ֚ם לֹ֣א תַגִּ֔ידוּ אֶת־דְּבָרֵ֖נוּ זֶ֑ה וְהָיָ֗ה בְּתֵת־ה' לָ֙נוּ֙ אֶת־הָאָ֔רֶץ וְעָשִׂ֥ינוּ עִמָּ֖ךְ חֶ֥סֶד וֶאֱמֶֽת׃
(8) The spies had not yet gone to sleep when she came up to them on the roof. (9) She said to the men, “I know that the LORD has given the country to you, because dread of you has fallen upon us, and all the inhabitants of the land are quaking before you. (10) For we have heard how the LORD dried up the waters of the Sea of Reeds for you when you left Egypt, and what you did to Sihon and Og, the two Amorite kings across the Jordan, whom you doomed. (11) When we heard about it, we lost heart, and no man had any more spirit left because of you; for the LORD your God is the only God in heaven above and on earth below. (12) Now, since I have shown loyalty to you, swear to me by the LORD that you in turn will show loyalty to my family. Provide me with a reliable sign (13) that you will spare the lives of my father and mother, my brothers and sisters, and all who belong to them, and save us from death.” (14) The men answered her, “Our persons are pledged for yours, even to death! If you do not disclose this mission of ours, we will show you true loyalty when the LORD gives us the land.”
(כב) וְלִשְׁנַ֨יִם הָאֲנָשִׁ֜ים הַֽמְרַגְּלִ֤ים אֶת־הָאָ֙רֶץ֙ אָמַ֣ר יְהוֹשֻׁ֔עַ בֹּ֖אוּ בֵּית־הָאִשָּׁ֣ה הַזּוֹנָ֑ה וְהוֹצִ֨יאוּ מִשָּׁ֤ם אֶת־הָֽאִשָּׁה֙ וְאֶת־כָּל־אֲשֶׁר־לָ֔הּ כַּאֲשֶׁ֥ר נִשְׁבַּעְתֶּ֖ם לָֽהּ׃ (כג) וַיָּבֹ֜אוּ הַנְּעָרִ֣ים הַֽמְרַגְּלִ֗ים וַיֹּצִ֡יאוּ אֶת־רָ֠חָב וְאֶת־אָבִ֨יהָ וְאֶת־אִמָּ֤הּ וְאֶת־אַחֶ֙יהָ֙ וְאֶת־כָּל־אֲשֶׁר־לָ֔הּ וְאֵ֥ת כָּל־מִשְׁפְּחוֹתֶ֖יהָ הוֹצִ֑יאוּ וַיַּ֨נִּיח֔וּם מִח֖וּץ לְמַחֲנֵ֥ה יִשְׂרָאֵֽל׃ (כד) וְהָעִ֛יר שָׂרְפ֥וּ בָאֵ֖שׁ וְכָל־אֲשֶׁר־בָּ֑הּ רַ֣ק ׀ הַכֶּ֣סֶף וְהַזָּהָ֗ב וּכְלֵ֤י הַנְּחֹ֙שֶׁת֙ וְהַבַּרְזֶ֔ל נָתְנ֖וּ אוֹצַ֥ר בֵּית־ה'׃ (כה) וְֽאֶת־רָחָ֣ב הַ֠זּוֹנָה וְאֶת־בֵּ֨ית אָבִ֤יהָ וְאֶת־כָּל־אֲשֶׁר־לָהּ֙ הֶחֱיָ֣ה יְהוֹשֻׁ֔עַ וַתֵּ֙שֶׁב֙ בְּקֶ֣רֶב יִשְׂרָאֵ֔ל עַ֖ד הַיּ֣וֹם הַזֶּ֑ה כִּ֤י הֶחְבִּ֙יאָה֙ אֶת־הַמַּלְאָכִ֔ים אֲשֶׁר־שָׁלַ֥ח יְהוֹשֻׁ֖עַ לְרַגֵּ֥ל אֶת־יְרִיחֽוֹ׃ (פ)
(22) But Joshua bade the two men who had spied out the land, “Go into the harlot’s house and bring out the woman and all that belong to her, as you swore to her.” (23) So the young spies went in and brought out Rahab, her father and her mother, her brothers and all that belonged to her—they brought out her whole family and left them outside the camp of Israel. (24) They burned down the city and everything in it. But the silver and gold and the objects of copper and iron were deposited in the treasury of the House of the LORD. (25) Only Rahab the harlot and her father’s family were spared by Joshua, along with all that belonged to her, and she dwelt among the Israelites—as is still the case. For she had hidden the messengers that Joshua sent to spy out Jericho.
Compare רכב's story to that of the spy asset from בית אל-- both helped בנ״י take a city, but the first was allowed to stay amongst בנ״י and the second was not, because רכב acknowledged God but the man from בית אל did not.
(כב) וַיַּעֲל֧וּ בֵית־יוֹסֵ֛ף גַּם־הֵ֖ם בֵּֽית־אֵ֑ל וַֽה' עִמָּֽם׃ (כג) וַיָּתִ֥ירוּ בֵית־יוֹסֵ֖ף בְּבֵֽית־אֵ֑ל וְשֵׁם־הָעִ֥יר לְפָנִ֖ים לֽוּז׃ (כד) וַיִּרְאוּ֙ הַשֹּׁ֣מְרִ֔ים אִ֖ישׁ יוֹצֵ֣א מִן־הָעִ֑יר וַיֹּ֣אמְרוּ ל֗וֹ הַרְאֵ֤נוּ נָא֙ אֶת־מְב֣וֹא הָעִ֔יר וְעָשִׂ֥ינוּ עִמְּךָ֖ חָֽסֶד׃ (כה) וַיַּרְאֵם֙ אֶת־מְב֣וֹא הָעִ֔יר וַיַּכּ֥וּ אֶת־הָעִ֖יר לְפִי־חָ֑רֶב וְאֶת־הָאִ֥ישׁ וְאֶת־כָּל־מִשְׁפַּחְתּ֖וֹ שִׁלֵּֽחוּ׃ (כו) וַיֵּ֣לֶךְ הָאִ֔ישׁ אֶ֖רֶץ הַחִתִּ֑ים וַיִּ֣בֶן עִ֗יר וַיִּקְרָ֤א שְׁמָהּ֙ ל֔וּז ה֣וּא שְׁמָ֔הּ עַ֖ד הַיּ֥וֹם הַזֶּֽה׃ (פ)
(22) The House of Joseph, for their part, advanced against Bethel, and the LORD was with them. (23) While the House of Joseph were scouting at Bethel (the name of the town was formerly Luz), (24) their patrols saw a man leaving the town. They said to him, “Just show us how to get into the town, and we will treat you kindly.” (25) He showed them how to get into the town; they put the town to the sword, but they let the man and all his relatives go free. (26) The man went to the Hittite country. He founded a city and named it Luz, and that has been its name to this day.