Ishmael and Isaac Reconcile. Or did they?
Ishmael and Isaac together bury their father Abraham. What was their relationship before then?

(ח) וַיִּגְוַ֨ע וַיָּ֧מׇת אַבְרָהָ֛ם בְּשֵׂיבָ֥ה טוֹבָ֖ה זָקֵ֣ן וְשָׂבֵ֑עַ וַיֵּאָ֖סֶף אֶל־עַמָּֽיו׃

(8) And Abraham breathed his last, dying at a good ripe age, old and contented; and he was gathered to his kin.

וְאִתְנְגִיד וּמִית אַבְרָהָם בְּשֵיבוּ טָבָא סִיב וּשְבַע כָּל טוּבָא בְּרַם יִשְׁמָעֵאל עֲבַד תְּתוּבָא בְּיוֹמֵיהּ וּבָתַר כֵּן אִתְכְּנַשׁ לְעַמֵיהּ

And Abraham expired, and died in a good old age, aged and satisfied with all good. (Also Ishmael wrought repentance in his days, and afterwards was gathered to his people.)

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

(9) His sons Isaac and Ishmael buried him in the cave of Machpelah, in the field of Ephron son of Zohar the Hittite, facing Mamre,

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

יצחק וישמעאל ISAAC AND ISHMAEL — From this we gather that Ishmael repented of his evil ways (cf.Bava Batra 16b) and yielded the precedence to Isaac. This is what is meant by the “good old age” mentioned in connection with Abraham (Genesis Rabbah 38:12).

יצחק וישמעאל אף על פי שישמעאל היה גדול בשנים הקדים הוא ליצחק אחיו, לפי שהיה בן הגבירה והוא היה בן השפחה.

יצחק וישמעאל , “both Yitzchok and Yishmael;” even though Yishmael was the senior son of Avraham, in fact his firstborn, Yitzchok is mentioned first as he was born by Avraham’s principal wife. Yishmael, after all was the son of a slavewoman.

(א) וַיֹּ֧סֶף אַבְרָהָ֛ם וַיִּקַּ֥ח אִשָּׁ֖ה וּשְׁמָ֥הּ קְטוּרָֽה׃

(1) Abraham took another wife, whose name was Keturah.

וַתֵּ֣לֶד ל֗וֹ אֶת־זִמְרָן֙ וְאֶת־יׇקְשָׁ֔ן וְאֶת־מְדָ֖ן וְאֶת־מִדְיָ֑ן וְאֶת־יִשְׁבָּ֖ק וְאֶת־שֽׁוּחַ׃

She bore him Zimran, Jokshan, Medan, Midian, Ishbak, and Shuah.

וְאוֹסִיף אַבְרָהָם וּנְסַב אִיתָא וּשְׁמָהּ קְטוּרָה הִיא הָגָר דִקְטִירָא לֵיהּ מִן שֵׁרוּיָא

And Abraham added and took a wife, and her name was Keturah; she is Hagar, who had been bound to him from the beginning.

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

קטורה KETURAH — This is Hagar. She was named Keturah because her deeds were as beautiful (sweet) as incense (Ketoreth) (Genesis Rabbah 61). And since she closed her 'opening,' as she did not mate with anyone from the time she separated from Avraham (Genesis Rabbah 61:4).

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

KETURAH. Keturah is not to be identified with Hagar because Scripture explicitly states, But unto the sons of the concubines (pilagshim), that Abraham had, Abraham gave gifts (v. 6). The meaning of pilegesh (concubine) is a handmaid. This term cannot refer to a male. We can explain upon concubinage (Ezek. 23:20) as referring to females.

ויקח אשה ושמה קטורה. ואע"ג דישראל אסור במצרית דכתיב בנים אשר יולדו להם דור שלישי הא דור שני לא יבא. והגר בת פרעה היתה כדפירש"י לעיל. איכא למימר גר הוא וגר מותר במצרית ובמדרש איתא על פי הדבור עשה:

ויקח אשה ושמה קטורה, “he married a wife whose name was Keturah.” Although in years to come, Israelites were not permitted to marry Egyptians, seeing that the Torah decreed in Deuteronomy that only commencing with the third generation after conversion were Egyptians acceptable as potential marriage partners, even if it was Hagar who had been converted, the fact that her father was Pharaoh that made her only a second generation even if we consider him as a first generation convert. According to B’reshit Rabbah 61,4, Avraham married her at the express command by G–d.

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

ויסף אברהם, he took another wife although he already had had two wives. He meant to continue siring children in his old age in order to comply with the blessing/command to increase the world’s population. Seeing that the continuity of his own seed [the Jewish people having originated in seed from both a Jewish father and a Jewish other, Ed.] had been assured, he was not concerned with the antecedents of Keturah. We can be certain, however, that he selected a woman who personally possessed all the good qualities he would have desired also for a wife for his son. The only thing he did not insist on was such a woman’s national background. He was certainly not looking for experiencing disappointments with any children from Keturah, having experienced enough disappointment with Ishmael. We may safely assume that Keturah was not of Canaanitic descent, seeing that even Hagar the Egyptian had not been of such descent. (compare 17,3) Keturah was not a concubine, This is why the Torah writes ויקח אשה, as apposed to the mention of פלגשים, concubines, (verse 5). The sons of the concubines are not mentioned by name whereas the sons of Keturah are all mentioned by their names. This fact alone clearly shows that their status was superior to the sons of Avraham’s concubines. The essential difference between a wife and a concubine is that though both are exclusive partners of the men with whom they live, the former, when becoming wives, underwent the ceremony known as chuppah, and the union was celebrated with a wedding party, whereas a concubine was not accorded all this pomp and ceremony. [after the Torah was given, the essential; difference in status was that no financial settlement, ketuvah, was made when a concubine was taken by a man as his companion.

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

“And Abraham proceeded to take another wife, and her name was Keturah.” He went back and married Hagar and called her Keturah because her deeds were as pleasant as incense [ketoret]. This is implied by the language and he proceeded, indicating that he married her a second time. We must explain why he called her Keturah now, based on her deeds, especially since this seems to contradict Rashi’s explanation in Parashat Vayeira (21:14) on she went and wandered that she had returned to her father’s house’s idolatry. What seems correct to me is that initially he divorced her at Sarah’s request, as Abraham was secondary to Sarah in prophecy. Sarah knew prophetically that she [Hagar] would eventually return to her father’s house’s idolatry, and she also saw that her son Ishmael was mocking, which carries the connotation of idol worship, as it says they rose to make merry (Exodus 32:6). Therefore she said, Drive out this maidservant and her son, for their deeds were alike, for the son of this maidservant shall not inherit with my son, with Isaac, meaning he would not inherit Abraham’s ways. ...

If so, since he divorced her because of the impropriety of idolatry, it is difficult to understand how he could take her back. Therefore, the text comes to explain that she had repented, just as her son Ishmael had also repented. To publicize this, Abraham called her name Keturah, referring to the incense [ketoret], thus making public that she had repented. For every penitent, their intentional sins become like merits, and these sins rise as a pleasant aroma like merits.

(א) קטורה - לפי הפשט אין זו הגר.

(1) קטורה, according to the plain meaning of the text this woman was not identical with Hagar.

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

"Abraham returned to his servants, they arose, and walked together to Be'er Sheva..." (Gen. 22:19) Where did Isaac go? He went to Be'er Lachai Ro'i, as it says "Isaac had just come back from the vicinity of Beer-lahai-roi, for he was settled in the region of the Negeb." (Gen.24:62) Isaac went and fled fraught about his father, his mother, and his God. How did it happen that he was bound, that they saw fit to do it, and why do it to him. He went to the wilderness, to a place where no man passed or dwelled. They said, "no man," but a woman did pass there, and it was Hagar - Be'er Lachai Ro'i (the well of life's shepherd) is Hagar's well. Isaac stood at the well until he remembered Ishmael who had played with him when he was a baby. He remembered Hagar who had walked away with a jug of water on her shoulder. Isaac sat there with Hagar and Ishmael, cried with and shared anger with them for many days. One day, he stood at the well opening and behold, the living God saw him, the living God heard his voice in the moment, and Isaac was comforted. He arose, took Hagar, and brought her back to his father, as it says, "Abraham too another wife, and her name was Keturah." (Genesis 25:1) Keturah is Hagar whose cries rose like the smoke (ketoret) on the altar. He also arose and took Ishmael and returned him to his father, as it says, "His sons Isaac and Ishmael buried him" (Gen. 25:9) "He shall reconcile parents with children and children with their parents" (Malachi 3:24). Afterwards, Isaac returned to that welland settled there, as it says "After the death of Abraham, God blessed his son Isaac. And Isaac settled near Beer-lahai-roi."(Genesis 25:11) This is why it is said about him that he re-dug old wells and brought out of them living water.

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

The incense-offering is the mystical element which establishes the connection between the "lower" and the "upper" domains of this universe. Rashi also explains the word קטורת as identical with the alternate name of Hagar, i.e. קטורה, to mean that her deeds were comparable to an incense offering because she "tied up" her door [euphemism for her vagina Ed.] and did not remarry until Sarah had died and Abraham was free to marry her (Genesis 25,1). Our sages suggest that Nadav and Avihu entered the Holy of Holies in order to teach a lesson concerning the mystical dimension of the incense-offering. They wanted to demonstrate that G–d anxiously awaits the prayers of the righteous. All of these notions are alluded to in Psalms 141,2: תכון תפלתי קטורת לפניך, "Take my prayer as an offering of incense before You." The subject of prayer teaches us the mystical dimension of the משפיע and the מושפע The latter prays with his eyes facing downwards while his heart is turned upwards toward G–d, the cause who turns His attention to what happens "down" here in our world. We in our hopes pour out our hearts heavenwards for He is the עילה, cause, whereas we are the עלולים, effects.

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

...Rabbi Shimon ben Yohai said Hagar was Pharaoh's daughter. When he saw the deeds on behalf of Sarah in his house, he took his daughter and gave her to him, saying, 'better that my daughter by a maidservant in this house than a mistress in another house.' This is what is written: "She had an Egyptian handmaid whose name was Hagar." [In other words:] ha agrikh: 'This is your reward.'