וַיַּשְׁכֵּ֣ם אַבְרָהָ֣ם ׀ בַּבֹּ֡קֶר וַיִּֽקַּֽח־לֶחֶם֩ וְחֵ֨מַת מַ֜יִם וַיִּתֵּ֣ן אֶל־הָ֠גָר שָׂ֧ם עַל־שִׁכְמָ֛הּ וְאֶת־הַיֶּ֖לֶד וַֽיְשַׁלְּחֶ֑הָ וַתֵּ֣לֶךְ וַתֵּ֔תַע בְּמִדְבַּ֖ר בְּאֵ֥ר שָֽׁבַע׃ וַיִּכְל֥וּ הַמַּ֖יִם מִן־הַחֵ֑מֶת וַתַּשְׁלֵ֣ךְ אֶת־הַיֶּ֔לֶד תַּ֖חַת אַחַ֥ד הַשִּׂיחִֽם׃ וַתֵּלֶךְ֩ וַתֵּ֨שֶׁב לָ֜הּ מִנֶּ֗גֶד הַרְחֵק֙ כִּמְטַחֲוֵ֣י קֶ֔שֶׁת כִּ֣י אָֽמְרָ֔ה אַל־אֶרְאֶ֖ה בְּמ֣וֹת הַיָּ֑לֶד וַתֵּ֣שֶׁב מִנֶּ֔גֶד וַתִּשָּׂ֥א אֶת־קֹלָ֖הּ וַתֵּֽבְךְּ׃ וַיִּשְׁמַ֣ע אֱלֹהִים֮ אֶת־ק֣וֹל הַנַּעַר֒ וַיִּקְרָא֩ מַלְאַ֨ךְ אֱלֹהִ֤ים ׀ אֶל־הָגָר֙ מִן־הַשָּׁמַ֔יִם וַיֹּ֥אמֶר לָ֖הּ מַה־לָּ֣ךְ הָגָ֑ר אַל־תִּ֣ירְאִ֔י כִּֽי־שָׁמַ֧ע אֱלֹהִ֛ים אֶל־ק֥וֹל הַנַּ֖עַר בַּאֲשֶׁ֥ר הוּא־שָֽׁם׃ ק֚וּמִי שְׂאִ֣י אֶת־הַנַּ֔עַר וְהַחֲזִ֥יקִי אֶת־יָדֵ֖ךְ בּ֑וֹ כִּֽי־לְג֥וֹי גָּד֖וֹל אֲשִׂימֶֽנּוּ׃ וַיִּפְקַ֤ח אֱלֹהִים֙ אֶת־עֵינֶ֔יהָ וַתֵּ֖רֶא בְּאֵ֣ר מָ֑יִם וַתֵּ֜לֶךְ וַתְּמַלֵּ֤א אֶת־הַחֵ֙מֶת֙ מַ֔יִם וַתַּ֖שְׁקְ אֶת־הַנָּֽעַר׃ וַיְהִ֧י אֱלֹהִ֛ים אֶת־הַנַּ֖עַר וַיִּגְדָּ֑ל וַיֵּ֙שֶׁב֙ בַּמִּדְבָּ֔ר וַיְהִ֖י רֹבֶ֥ה קַשָּֽׁת׃ וַיֵּ֖שֶׁב בְּמִדְבַּ֣ר פָּארָ֑ן וַתִּֽקַּֽח־ל֥וֹ אִמּ֛וֹ אִשָּׁ֖ה מֵאֶ֥רֶץ מִצְרָֽיִם׃ (פ)
And Rabbi Yitzḥak said: A man is judged only according to his deeds at the time of his judgment, and not according to his future deeds, as it is stated with regard to Ishmael: “For God has heard the voice of the lad where he is” (Genesis 21:17). Although Ishmael and his descendants would act wickedly in the future, his prayer was heard and answered because he was innocent at the time.
באשר הוא שם, “due to the condition he found himself in;” according to Rashi the “condition” referred to is his legal/moral condition. He had not been wicked enough as yet to deserve to die on account of that. And what about a rebellious son who is killed because of how he will end up? The difference there is that that son had already begun as wicked, whereas at that age Ishmael was righteous and innocent of the sin of [not] meeting the thirsty with water...
The Gemara asks: And is it correct that one who repents of the sin of forbidden sexual intercourse does not die? But isn’t it taught in a baraita: They said about Rabbi Elazar ben Durdayya that he was so promiscuous that he did not leave one prostitute in the world with whom he did not engage in sexual intercourse. Once, he heard that there was one prostitute in one of the cities overseas who would take a purse full of dinars as her payment. He took a purse full of dinars and went and crossed seven rivers to reach her. When they were engaged in the matters to which they were accustomed, she passed wind and said: Just as this passed wind will not return to its place, so too Elazar ben Durdayya will not be accepted in repentance, even if he were to try to repent. He went and sat between two mountains and hills and said: Mountains and hills, pray for mercy on my behalf, so that my repentance will be accepted. They said to him: Before we pray for mercy on your behalf, we must pray for mercy on our own behalf, as it is stated: “For the mountains may depart, and the hills be removed” (Isaiah 54:10). He said: Heaven and earth, pray for mercy on my behalf. They said to him: Before we pray for mercy on your behalf, we must pray for mercy on our own behalf, as it is stated: “For the heavens shall vanish away like smoke, and the earth shall wax old like a garment” (Isaiah 51:6). He said: Sun and moon, pray for mercy on my behalf. They said to him: Before we pray for mercy on your behalf, we must pray for mercy on our own behalf, as it is stated: “Then the moon shall be confounded, and the sun ashamed” (Isaiah 24:23). He said: Stars and constellations, pray for mercy on my behalf. They said to him: Before we pray for mercy on your behalf, we must pray for mercy on our own behalf, as it is stated: “And all the hosts of heaven shall molder away” (Isaiah 34:4). Elazar ben Durdayya said: Clearly the matter depends on nothing other than myself. He placed his head between his knees and cried loudly until his soul left his body. A Divine Voice emerged and said: Rabbi Elazar ben Durdayya is destined for life in the World-to-Come. The Gemara explains the difficulty presented by this story: And here Elazar ben Durdayya was guilty of the sin of forbidden sexual intercourse, and yet he died once he repented. The Gemara answers: There too, since he was attached so strongly to the sin, to an extent that transcended the physical temptation he felt, it is similar to heresy, as it had become like a form of idol worship for him. When Rabbi Yehuda HaNasi heard this story of Elazar ben Durdayya, he wept and said: There is one who acquires his share in the World-to-Come only after many years of toil, and there is one who acquires his share in the World-to-Come in one moment. And Rabbi Yehuda HaNasi further says: Not only are penitents accepted, but they are even called: Rabbi, as the Divine Voice referred to Elazar ben Durdayya as Rabbi Elazar ben Durdayya.
