(א) וַֽיהוָ֛ה פָּקַ֥ד אֶת־שָׂרָ֖ה כַּאֲשֶׁ֣ר אָמָ֑ר וַיַּ֧עַשׂ יְהוָ֛ה לְשָׂרָ֖ה כַּאֲשֶׁ֥ר דִּבֵּֽר׃ (ב) וַתַּהַר֩ וַתֵּ֨לֶד שָׂרָ֧ה לְאַבְרָהָ֛ם בֵּ֖ן לִזְקֻנָ֑יו לַמּוֹעֵ֕ד אֲשֶׁר־דִּבֶּ֥ר אֹת֖וֹ אֱלֹהִֽים׃ (ג) וַיִּקְרָ֨א אַבְרָהָ֜ם אֶֽת־שֶׁם־בְּנ֧וֹ הַנּֽוֹלַד־ל֛וֹ אֲשֶׁר־יָלְדָה־לּ֥וֹ שָׂרָ֖ה יִצְחָֽק׃ (ד) וַיָּ֤מָל אַבְרָהָם֙ אֶת־יִצְחָ֣ק בְּנ֔וֹ בֶּן־שְׁמֹנַ֖ת יָמִ֑ים כַּאֲשֶׁ֛ר צִוָּ֥ה אֹת֖וֹ אֱלֹהִֽים׃ (ה) וְאַבְרָהָ֖ם בֶּן־מְאַ֣ת שָׁנָ֑ה בְּהִוָּ֣לֶד ל֔וֹ אֵ֖ת יִצְחָ֥ק בְּנֽוֹ׃ (ו) וַתֹּ֣אמֶר שָׂרָ֔ה צְחֹ֕ק עָ֥שָׂה לִ֖י אֱלֹהִ֑ים כָּל־הַשֹּׁמֵ֖עַ יִֽצְחַק־לִֽי׃ (ז) וַתֹּ֗אמֶר מִ֤י מִלֵּל֙ לְאַבְרָהָ֔ם הֵינִ֥יקָה בָנִ֖ים שָׂרָ֑ה כִּֽי־יָלַ֥דְתִּי בֵ֖ן לִזְקֻנָֽיו׃ (ח) וַיִּגְדַּ֥ל הַיֶּ֖לֶד וַיִּגָּמַ֑ל וַיַּ֤עַשׂ אַבְרָהָם֙ מִשְׁתֶּ֣ה גָד֔וֹל בְּי֖וֹם הִגָּמֵ֥ל אֶת־יִצְחָֽק׃ (ט) וַתֵּ֨רֶא שָׂרָ֜ה אֶֽת־בֶּן־הָגָ֧ר הַמִּצְרִ֛ית אֲשֶׁר־יָלְדָ֥ה לְאַבְרָהָ֖ם מְצַחֵֽק׃ (י) וַתֹּ֙אמֶר֙ לְאַבְרָהָ֔ם גָּרֵ֛שׁ הָאָמָ֥ה הַזֹּ֖את וְאֶת־בְּנָ֑הּ כִּ֣י לֹ֤א יִירַשׁ֙ בֶּן־הָאָמָ֣ה הַזֹּ֔את עִם־בְּנִ֖י עִם־יִצְחָֽק׃ (יא) וַיֵּ֧רַע הַדָּבָ֛ר מְאֹ֖ד בְּעֵינֵ֣י אַבְרָהָ֑ם עַ֖ל אוֹדֹ֥ת בְּנֽוֹ׃ (יב) וַיֹּ֨אמֶר אֱלֹהִ֜ים אֶל־אַבְרָהָ֗ם אַל־יֵרַ֤ע בְּעֵינֶ֙יךָ֙ עַל־הַנַּ֣עַר וְעַל־אֲמָתֶ֔ךָ כֹּל֩ אֲשֶׁ֨ר תֹּאמַ֥ר אֵלֶ֛יךָ שָׂרָ֖ה שְׁמַ֣ע בְּקֹלָ֑הּ כִּ֣י בְיִצְחָ֔ק יִקָּרֵ֥א לְךָ֖ זָֽרַע׃ (יג) וְגַ֥ם אֶת־בֶּן־הָאָמָ֖ה לְג֣וֹי אֲשִׂימֶ֑נּוּ כִּ֥י זַרְעֲךָ֖ הֽוּא׃ (יד) וַיַּשְׁכֵּ֣ם אַבְרָהָ֣ם ׀ בַּבֹּ֡קֶר וַיִּֽקַּֽח־לֶחֶם֩ וְחֵ֨מַת מַ֜יִם וַיִּתֵּ֣ן אֶל־הָ֠גָר שָׂ֧ם עַל־שִׁכְמָ֛הּ וְאֶת־הַיֶּ֖לֶד וַֽיְשַׁלְּחֶ֑הָ וַתֵּ֣לֶךְ וַתֵּ֔תַע בְּמִדְבַּ֖ר בְּאֵ֥ר שָֽׁבַע׃ (טו) וַיִּכְל֥וּ הַמַּ֖יִם מִן־הַחֵ֑מֶת וַתַּשְׁלֵ֣ךְ אֶת־הַיֶּ֔לֶד תַּ֖חַת אַחַ֥ד הַשִּׂיחִֽם׃ (טז) וַתֵּלֶךְ֩ וַתֵּ֨שֶׁב לָ֜הּ מִנֶּ֗גֶד הַרְחֵק֙ כִּמְטַחֲוֵ֣י קֶ֔שֶׁת כִּ֣י אָֽמְרָ֔ה אַל־אֶרְאֶ֖ה בְּמ֣וֹת הַיָּ֑לֶד וַתֵּ֣שֶׁב מִנֶּ֔גֶד וַתִּשָּׂ֥א אֶת־קֹלָ֖הּ וַתֵּֽבְךְּ׃ (יז) וַיִּשְׁמַ֣ע אֱלֹהִים֮ אֶת־ק֣וֹל הַנַּעַר֒ וַיִּקְרָא֩ מַלְאַ֨ךְ אֱלֹהִ֤ים ׀ אֶל־הָגָר֙ מִן־הַשָּׁמַ֔יִם וַיֹּ֥אמֶר לָ֖הּ מַה־לָּ֣ךְ הָגָ֑ר אַל־תִּ֣ירְאִ֔י כִּֽי־שָׁמַ֧ע אֱלֹהִ֛ים אֶל־ק֥וֹל הַנַּ֖עַר בַּאֲשֶׁ֥ר הוּא־שָֽׁם׃ (יח) ק֚וּמִי שְׂאִ֣י אֶת־הַנַּ֔עַר וְהַחֲזִ֥יקִי אֶת־יָדֵ֖ךְ בּ֑וֹ כִּֽי־לְג֥וֹי גָּד֖וֹל אֲשִׂימֶֽנּוּ׃ (יט) וַיִּפְקַ֤ח אֱלֹהִים֙ אֶת־עֵינֶ֔יהָ וַתֵּ֖רֶא בְּאֵ֣ר מָ֑יִם וַתֵּ֜לֶךְ וַתְּמַלֵּ֤א אֶת־הַחֵ֙מֶת֙ מַ֔יִם וַתַּ֖שְׁקְ אֶת־הַנָּֽעַר׃ (כ) וַיְהִ֧י אֱלֹהִ֛ים אֶת־הַנַּ֖עַר וַיִּגְדָּ֑ל וַיֵּ֙שֶׁב֙ בַּמִּדְבָּ֔ר וַיְהִ֖י רֹבֶ֥ה קַשָּֽׁת׃ (כא) וַיֵּ֖שֶׁב בְּמִדְבַּ֣ר פָּארָ֑ן וַתִּֽקַּֽח־ל֥וֹ אִמּ֛וֹ אִשָּׁ֖ה מֵאֶ֥רֶץ מִצְרָֽיִם׃
(1) The LORD took note of Sarah as He had promised, and the LORD did for Sarah as He had spoken. (2) Sarah conceived and bore a son to Abraham in his old age, at the set time of which God had spoken. (3) Abraham gave his newborn son, whom Sarah had borne him, the name of Isaac. (4) And when his son Isaac was eight days old, Abraham circumcised him, as God had commanded him. (5) Now Abraham was a hundred years old when his son Isaac was born to him. (6) Sarah said, “God has brought me laughter; everyone who hears will laugh with me.” (7) And she added, “Who would have said to Abraham That Sarah would suckle children! Yet I have borne a son in his old age.” (8) The child grew up and was weaned, and Abraham held a great feast on the day that Isaac was weaned. (9) Sarah saw the son whom Hagar the Egyptian had borne to Abraham playing. (10) She said to Abraham, “Cast out that slave-woman and her son, for the son of that slave shall not share in the inheritance with my son Isaac.” (11) The matter distressed Abraham greatly, for it concerned a son of his. (12) But God said to Abraham, “Do not be distressed over the boy or your slave; whatever Sarah tells you, do as she says, for it is through Isaac that offspring shall be continued for you. (13) As for the son of the slave-woman, I will make a nation of him, too, for he is your seed.” (14) Early next morning Abraham took some bread and a skin of water, and gave them to Hagar. He placed them over her shoulder, together with the child, and sent her away. And she wandered about in the wilderness of Beer-sheba. (15) When the water was gone from the skin, she left the child under one of the bushes, (16) and went and sat down at a distance, a bowshot away; for she thought, “Let me not look on as the child dies.” And sitting thus afar, she burst into tears. (17) God heard the cry of the boy, and an angel of God called to Hagar from heaven and said to her, “What troubles you, Hagar? Fear not, for God has heeded the cry of the boy where he is. (18) Come, lift up the boy and hold him by the hand, for I will make a great nation of him.” (19) Then God opened her eyes and she saw a well of water. She went and filled the skin with water, and let the boy drink. (20) God was with the boy and he grew up; he dwelt in the wilderness and became a bowman. (21) He lived in the wilderness of Paran; and his mother got a wife for him from the land of Egypt.
(ז) נִתַּאי הָאַרְבֵּלִי אוֹמֵר, הַרְחֵק מִשָּׁכֵן רָע, וְאַל תִּתְחַבֵּר לָרָשָׁע, וְאַל תִּתְיָאֵשׁ מִן הַפֻּרְעָנוּת:
(7) Nitai of Arbel says: "Distance [yourself] from a bad neighbor, do not befriend an evildoer and do not despair of punishment."
Rashi on מצחק MAKING SPORT — This means worshipping idols, as it is said in reference of the Golden Calf, (Exodus 32:6) “And they rose up to make merry (לצחק).” Another explanation is that it refers to immoral conduct, just as you say in reference to Potiphar’s wife, (Genesis 39:17) “To mock (לצחק) at me.” Another explanation is that it refers to murder, as (2 Samuel 2:14) “Let the young men, I pray thee, arise and make sport (וישחקו) before us” (where they fought with and killed one another) (Genesis Rabbah 53). From Sarah’s reply — “for the son of this bondwoman shall not be heir with my son״ — you may infer that he (Ishmael) was quarrelling with Isaac about the inheritance, saying, “I am the first-born and will, therefore, take a double portion”. They went into the field and he (Ishmael) took his bow and shot arrows at him (Isaac), just as you say (Proverbs 26:18-19) “As a madman who casteth firebrands, [arrows and death] and says: I am only מצחק mocking” (Proverbs 26:18).
Radak onותרא...מצחק. Ishmael was belittling Yitzchok for having a father who was so much older than he.
What was the source of Avraham's distress?
על אדות בנו AVRAHAM WAS DISTRESSED ON ACCOUNT OF HIS SON [ISHMAEL] — because he heard that he had taken to degenerate ways (Tanchuma Shemoth).
Radak on Avraham's Distress: וירע הדבר...על אודות בנו, even though Ishmael was the son of a slave-woman, he was at the same time also Avraham’s son, and he loved him as a father loves one’s son, especially seeing that he was his firstborn. He was merciful towards him like a father is merciful to all his children. Moreover, he had taught him to behave and had taught him the ways of the Lord. In fact, if he, Avraham, had taught all and sundry the ways of the Lord, he had most certainly not neglected to teach these ways to his own son. Therefore, the request by Sarah to expel his own son was a source of great chagrin to him. Avraham kept his chagrin to himself and did not express anger at his wife as he was concerned with preserving שלום בית, peaceful marital relations with his wife. This was the state of affairs until G’d intervened in the matter.
G-d Tell's Avraham to Listen to Sarah:
שמע בקולה HEARKEN UNTO HER VOICE — we may infer that Abraham was inferior to Sarah in respect of prophecy (Tanchuma Shemoth). (RASHI)
כל אשר תאמר, this was not a carte blanche for Sarah except in the matter of Ishmael and Hagar. The point was that Ishmael was not to share in Avraham’ s heritage. (RADAK)
Why did G-d save Ishmael, given what his descendants would do in the future (according to Rashi)?
באשר הוא שם, at the very site where Hagar had thrown the boy. The message to Hagar was that at the very site where she thought that her so was going to die, there G’d heard his voice, his prayer. Our sages (Rosh Hashanah 16) derive from this wording that human beings are not judged by the Heavenly Court on the basis of what they might become guilty of in the future, but their judgment is based on their status at the time judgment is in progress. If someone is wicked at the time the Heavenly Court is in session, the fact that G’d foresees that he will (would) become righteous at some point in the future is not taken into consideration. Equally, if someone at the time when the Court is in session is deemed innocent, the fact that G’d foresees that he will become a great sinner is not used to influence his judgment at that time. There is an interesting aggadah, according to which the angels remonstrated with G’d at this time, challenging G’d’s mercy on the basis of the untold harm Ishmael’s descendants would visit upon G’d’s people, the Jews in the future. The angels referred specifically to the Ishmaelites denying Jews on the march into exile water to quench their thirst. (a reference to Isaiah 21:13-14) G’d silenced them by asking whether at this particular point in time Ishmael deserved to die. They had to admit that he did not. Hence G’d felt free to exercise His mercy and to let him live.
And Hagar Found Yishmael a Wife (Radak):
וישב...ותקח לו אמו, she took a wife for him from her own family, seeing that he had become separated from his father’s family. It is proper for people to marry into members of their family (not too close) as a stronger bond of mutual love is liable to be forged between men and women of similar backgrounds, such as both being members of the same clan.