Joshua2:12

וְעַתָּה הִשָּׁבְעוּ־נָא לִי בַּיהוָה כִּי־עָשִׂיתִי עִמָּכֶם חָסֶד וַעֲשִׂיתֶם גַּם־אַתֶּם עִם־בֵּית אָבִי חֶסֶד וּנְתַתֶּם לִי אוֹת אֱמֶת׃

And now, please swear to me by the Eternal that, since I have shown you kindness, you also will show kindness to my father's house, and give me a true sign,

Joshua 2:12

וְעַתָּה הִשָּׁבְעוּ־נָא לִי

Yehoshua / Joshua 2:12 · Drash

Joshua 2:12

וְעַתָּה הִשָּׁבְעוּ־נָא לִי בַּיהוָה כִּי־עָשִׂיתִי עִמָּכֶם חָסֶד וַעֲשִׂיתֶם גַּם־אַתֶּם עִם־בֵּית אָבִי חֶסֶד וּנְתַתֶּם לִי אוֹת אֱמֶת׃

And now, please swear to me by the Eternal that, since I have shown you kindness, you also will show kindness to my father's house, and give me a true sign,

Drash דְּרָשׁ

Praise and blame

A person with a dark past acts better than those born in holiness. What does this say about both?

Pesikta DeRav Kahana: Rabbi Abba bar Kahana said: let the son of the woman who went astray and mended her ways come and rebuke the son of the woman who was upright and spoiled her ways. Everything written of the people of Israel in blame is written of Rachav (Rahab) in praise. Rachav swears by the Eternal, and they "swear falsely." Rachav asks to keep her father and mother alive, and they "dishonored father and mother." Rachav asks for "a true sign," and they "do not speak truth."

How Pesikta DeRav Kahana explain it

Pesikta DeRav Kahana A wise servant

Rabbi Yehoshua of Sakhnin opened in the name of Rabbi Levi: "A wise servant shall rule over a son who causes shame, and shall share the inheritance among the brothers" (Mishlei / Proverbs 17:2). "A wise servant": this is Yirmeyahu (Jeremiah). "Shall rule over a son who causes shame": this is Israel, who shamed themselves with idol worship. Said Rabbi Abba bar Kahana: it is written "and you were not like a harlot who scorns payment" (Yechezkel / Ezekiel 16:31). Let the son of the woman who went wrong and mended her ways come and rebuke the son of the woman who was upright and spoiled her ways. You find: everything written of Israel in blame is written of Rachav (Rahab) in praise. Of Rachav it is written: "And now, please swear to me by the Eternal, since I have shown you kindness" (Yehoshua / Joshua 2:12), and of Israel it is written: "they swear falsely" (Yirmeyahu / Jeremiah 5:2). Of Rachav it is written: "and keep alive my father and my mother" (Yehoshua / Joshua 2:13), and of Israel it is written: "father and mother they have dishonored in you" (Yechezkel / Ezekiel 22:7). Of Rachav it is written: "but she had brought them up to the roof" (Yehoshua / Joshua 2:6), and of Israel it is written: "and those who bow down on the roofs to the host of heaven" (Tzefanyah / Zephaniah 1:5). Of Rachav it is written: "and hid them under the stalks of flax" (Yehoshua / Joshua 2:6), and of Israel it is written: "who say to wood: you are my father" (Yirmeyahu / Jeremiah 2:27). Of Rachav it is written: "And she said to them: 'Go to the mountain'" (Yehoshua / Joshua 2:16), and of Israel it is written: "on the tops of the mountains they sacrifice" (Hoshea / Hosea 4:13). Of Rachav it is written: "and give me a true sign" (Yehoshua / Joshua 2:12), and of Israel it is written: "and they do not speak truth" (Yirmeyahu / Jeremiah 9:4). So everything written of Israel in blame is written of Rachav in praise. "And shall share the inheritance among the brothers": this is Yirmeyahu. Of him it is written: "And Yirmeyahu went out of Jerusalem to go" and so on (Yirmeyahu / Jeremiah 37:12). Rav said: he went out to take his share. Rabbi Binyamin ben Levi said: there were many prophecies there. It is not written "the word of Yirmeyahu" but "the words of Yirmeyahu," and so Scripture needs to say: "the words of Yirmeyahu" (Yirmeyahu / Jeremiah 1:1).

Takeaway

The sages say that eight prophets who were kohanim descended from Rachav, who joined Israel, and Yirmeyahu among them (Megillah 14b). So the midrash calls Yirmeyahu "the son of the woman who mended her ways."
The midrash compares words: the "flax" (פִּשְׁתֵּי הָעֵץ, literally "flax of the wood") and the "wood" that was worshipped, the mountain where Rachav hid the scouts and the mountains where sacrifices were offered to idols.
This is a sermon on the first of the three haftarot of mourning before the Ninth of Av, "The words of Yirmeyahu" (Yirmeyahu / Jeremiah 1:1). We translated the ending about Rabbi Binyamin ben Levi with care, it needs checking.
Rabbi Yehoshua of Sakhnin is not Rabbi Yehoshua ben Levi. We do not have a card for him yet.