"And it came to pass at that time that Abimelech said" (Genesis 21:22). "When the LORD is pleased with a man's ways" (Proverbs 16:7) refers to Abraham; "even his enemies are at peace with him." "Abimelech and Phicol the captain of his host": Rabbi Yehuda says Phicol was his name; Rabbi Nechemiah says it means "the mouth that all his hosts kiss [noshkin] upon his command [piv]." "God is with you in all that you do" (Genesis 21:22). The nations of the world used to say: if he were righteous he would have begotten children. Once he begot a child, they said to him, "God is with you in all that you do." If he were righteous he would not have listened to his wife's voice to drive out his son; but once God said, "In all that Sarah says to you, listen to her voice," they said, "God is with you in all that you do." If he were righteous he would not have driven out his firstborn son; once they saw his deeds, they said, "God is with you." "Since God is with you, swear to me that you will not deal falsely with me, nor with my son, nor with my grandson" (Genesis 21:23): up to here the mercy of a father reaches for a son; up to here for partner brothers. It is written, "My enemies are vigorous and strong" (Psalms 38:20): what was given to Abraham for seven generations was given to Abimelech for three. Why? "God did not lead them by way of the land of the Philistines" (Exodus 13:17), because his grandson was still alive. "According to the kindness I have done you" (Genesis 21:23): what kindness did he do him? "Behold, my land is before you" (Genesis 20:15), yet Abraham did not accept it. "And Abraham reproved Abimelech" (Genesis 21:25): any love without reproof is not love; reproof brings peace, and any peace without reproof is not peace. "Concerning the well of water which they had seized": who is a robber? One who robs in public, as it says, "And they robbed all who passed by them on the road"; just as a road is public, so robbery is in public. Rabbi Shimon ben Yochai brings it from here: "You bring what is stolen, and the lame, and the sick" (Malachi 1:13); just as lame and sick are blemishes in the open, so robbery is in the open. Resh Lakish said: before ten witnesses it is robbery. Rabbi Tanchum said: he is not truly a robber until he seizes it from the victim's own hand, as it says, "And he seized the spear from the Egyptian's hand." "And Abimelech said: I do not know who did this thing; you did not tell me, and I also did not hear of it" (Genesis 21:26): you did not tell me by your own word, and I also did not hear of it by means of an angel. "For these seven ewe-lambs you shall take from my hand" (Genesis 21:30). The Holy One, blessed be He, said to him: You gave him seven ewe-lambs; by your life, I will delay the joy of your descendants for seven generations. You gave him seven ewe-lambs; correspondingly, seven righteous ones of your descendants will be slain: Samson, Hophni, Phinehas, Saul and his three sons. You gave him seven ewe-lambs; by your life, correspondingly seven sanctuaries of your descendants will be destroyed: the Tent of Meeting, Nob, Gilgal, Gibeon, Shiloh, and the two eternal Houses. You gave him seven ewe-lambs; correspondingly My ark will dwell in the field of the Philistines seven months. The rabbis say: the shepherds of Abimelech were disputing with the shepherds of Abraham. These said the well is ours, and those said the well is ours. The shepherds of Abraham said: whoever's flock the waters rise to greet, the well is his. When the waters saw Abraham's flock, they immediately rose. The Holy One, blessed be He, said to him: you are a sign for your children. Just as for you, when the waters saw your flock they immediately rose, so for your children, when the well sees them it will immediately rise of itself, as it is written, "Then Israel sang... spring up, O well" (Numbers 21:17). Rabbi Yitzchak said: it does not say "because it was for me," but "that it may be a witness for me."
Abimelech's Treaty and the Price of the Seven Ewe-Lambs
Yalkut Shimoni on Torah 95:4
(בראשית כא כב-כג) וַיְּהִי בָּעֵת הַהִיא וַיֹּאמֶר אֲבִימֶלֶךְ, (משלי טז, ז) "בִּרְצוֹת ה' דַּרְכֵי אִישׁ" זֶה אַבְרָהָם "גַּם אוֹיְבָיו יַשְׁלִים אִתּוֹ". וַיֹּאמֶר אֲבִימֶלֶךְ וּפִיכֹל שַׂר צְבָאוֹ, רַבִּי יְהוּדָה אוֹמֵר, פִיכֹל הָיָה שְׁמוֹ רַבִּי נֶחֶמְיָה אוֹמֵר, פֶּה שֶׁכָּל צִבְאוֹתָיו נוֹשְׁקִין לוֹ עַל פִּיו. אֱלֹהִים עִמְּךָ בְּכֹל אֲשֶׁר אַתָּה עֹשֶׂה, לְפִי שֶׁהָיוּ אוּמוֹת הָעוֹלָם אוֹמְרִים אִלּוּ הָיָה צַדִּיק, הָיָה מוֹלִיד. וְכֵיוָן שֶׁהוֹלִיד, אָמְרוּ לוֹ, אֱלֹהִים עִמְּךָ בְּכֹל אֲשֶׁר אַתָּה עֹשֶׂה. אִלּוּ הָיָה צַדִּיק לֹא הָיָה שׁוֹמֵעַ לְקוֹל אִשְׁתּוֹ לִדְחוֹת אֶת בְּנוֹ, וְכֵיוָן שֶׁאָמַר (לוֹ) אֱלֹהִים, "כָּל אֲשֶׁר תֹּאמַר אֵלֶיךָ שָׂרָה שְׁמַע בְּקֹלָהּ", אָמְרוּ אֱלֹהִים עִמְּךָ בְּכֹל אֲשֶׁר אַתָּה עֹשֶׂה. אִלּוּ הָיָה צַדִּיק לֹא הָיָה דּוֹחֶה בְּנוֹ בְּכוֹרוֹ כֵּיוָן שֶׁרָאוּ מַעֲשָׂיו אָמַר אֱלֹהִים עִמְּךָ וְגוֹ' הוֹאִיל וֵאלֹהִים עִמָּךְ הִשָׁבְעָה לִי, אִם תִּשְׁקֹר לִי וּלְנִינִי וּלְנֶכְדִּי, עַד כָּאן רַחֲמֵי הָאַב עַל הַבֵּן. עַד כָּאן לְאַחִין הַשֻּׁתָּפִין. כְּתִיב, (תהלים לח, כ) "וְאֹיְבַי חַיִּים עָצֵמוּ" מַה שֶׁנִתַּן לְאַבְרָהָם לְשִׁבְעָה דּוֹרוֹת, נִתַּן לְאֲבִימֶלֶךְ לִשְׁלֹשָׁה דּוֹרוֹת לָמָה (שמות יג, יז) "לֹא נָחָם אֱלֹהִים דֶּרֶךְ אֶרֶץ פְּלִשְׁתִּים" שֶׁעֲדַיִן נֶכְדּוֹ קַיָּם. כַּחֶסֶד אֲשֶׁר עָשִׂיתִי עִמְּךָ, מַה חֶסֶד עָשָׂה לוֹ, (בראשית כ, טו) "הִנֵּה אַרְצִי לְפָנֶיךָ", וְלֹא קִבֵּל. (בראשית כא כה) וְהוֹכִחַ אַבְרָהָם אֶת אֲבִימֶלֶךְ, כָּל אַהֲבָה שֶׁאֵין בָּה תּוֹכֵחָה אֵינָה אַהֲבָה. תּוֹכֵחָה מְבִיאָה לִידֵי שָׁלוֹם כָּל שָׁלוֹם שֶׁאֵין עִמּוֹ תּוֹכֵחָה אֵינוֹ שָׁלוֹם. עַל אֹדוֹת בְּאֵר הַמַּיִם אֲשֶׁר גָּזְלוּ, אֵיזֶהוּ גַּזְלָן שֶׁהוּא גּוֹזֵל בְּפַרְהֶסְיָא, כְּדָא דְּאַתְּ אָמַר, "וַיִּגְזְלוּ [אֵת] כָּל אֲשֶׁר יַעֲבֹר עֲלֵיהֶם בַּדָּרֶךְ, מַה דֶּרֶךְ בְּפַרְהֶסְיָא, אַף גֶּזֶל בְּפַרְהֶסְיָא. רַבִּי שִׁמְעוֹן בֶּן יוֹחַאי מַיְיתִי לָה מֵהָכָא, (מלאכי א, יג) "וַהֲבֵאתֶם גָּזוּל וְאֶת הַפִּסֵּח וְאֶת הַחוֹלֶה", מַה פִּסֵּח וְחוֹלֶה מוּמִין שֶׁבְּגָלוּי אַף גֶּזֶל בְּגָלוּי. רֵישׁ לָקִישׁ אָמַר לִפְנֵי עֲשָׂרָה גַּזְלָן. רַבִּי תַּנְחוּם אָמַר, לְעוֹלָם אֵינוֹ גַּזְלָן, עַד שֶׁיִּגְזְלֶנוּ מִתַּחַת יָדוֹ, שֶׁנֶּאֱמַר, "וַיִּגְזֹל אֶת הַחֲנִית מִיַּד הַמִּצְרִי". (בראשית כא כו) וַיֹּאמֶר אֲבִימֶלֶךְ מִי עָשָׂה אֶת הַדָּבָר הַזֶּה וְגַם אַתָּה לֹא הִגַּדְתָּ לִי עַל יָדֶךָ, וְגַם אָנֹכִי לֹא שָׁמַעְתִּי עַל יְדֵי מַלְאָךְ. (בראשית כא ל) כִּי אֶת שֶׁבַע כְּבָשֹׂת תִּקַּח מִיָּדִי, אָמַר לֵיה הַקָּדוֹשׁ בָּרוּךְ הוּא, אַתָּה נָתַתָּ לוֹ שֶׁבַע כְּבָשׂוֹת חַיֶּיךָ שֶׁאֲנִי מַשְׁהֶה מִשִּׂמְחַת בָּנֶיךָ שִׁבְעָה דּוֹרוֹת אַתָּה נָתַתָּ לוֹ שֶׁבַע כְּבָשׂוֹת, כְּנֶגֶד כֵּן הוֹרְגִים מִבָּנֶיךָ שִׁבְעָה צַדִּיקִים אֵלוּ הֵן שִׁמְשׁוֹן, חָפְנִי, וּפִנְחָס, וְשָׁאוּל וּשְׁלֹשֶׁת בָּנָיו. אַתָּה נָתַתָּ לוֹ שֶׁבַע כְּבָשׂוֹת, חַיֶּיךָ כְּנֶגֶד כֵּן מַחְרִיבִין מִבָּנֶיךָ שִׁבְעָה מִשְׁכְּנוֹת. וְאֵלוּ הֵן, אֹהֶל מוֹעֵד, נוֹב, גִּלְגָּל, וְגִבְעוֹן, וְשִׁילֹה, וּבֵית עוֹלָמִים שְׁנַיִם. אַתָּה נָתַתָּ לוֹ שֶׁבַע כְּבָשׂוֹת, כְּנֶגֶד כֵּן אֲרוֹנִי חוֹזֵר בִּשְׂדֵה פְּלִשְׁתִּים שִׁבְעָה חֳדָשִׁים. רַבָּנָן אַמְרִי, רוֹעֵי אֲבִימֶלֶךְ הָיוּ מִדַּיְּנִין עִם רוֹעֵי אַבְרָהָם, אֵלוּ אָמְרוּ שֶׁלָנוּ הַבְּאֵר, וְאֵלוּ אָמְרוּ שֶׁלָנוּ הַבְּאֵר, אָמְרוּ רוֹעֵי אַבְרָהָם כָּל מִי שֶׁהַמַּיִם רוֹאִין אֶת צֹאנוֹ וְעוֹלִים שֶׁלּוֹ הִיא, כֵּיוָן שֶׁרָאוּ הַמַּיִם צֹאנוֹ שֶׁל אַבְרָהָם מִיַּד עָלוּ. אָמַר לֵיה הַקָּדוֹשׁ בָּרוּךְ הוּא, אַתָּה סִימָן לְבָנֶיךָ, מַה אַתָּה כֵּיוָן שֶׁרָאוּ הַמַּיִם צֹאנְךָ מִיַּד עָלוּ, אַף בָּנֶיךָ כֵּיוָן שֶׁהַבְּאֵר רוֹאָה אוֹתָן מִיַּד תְּהֵא עוֹלָה מֵאֵלֶיהָ, הַדָא הוּא דִּכְתִיב, (במדבר כא, יז) "אָז יָשִׁיר יִשְׂרָאֵל וְכוּ' עֲלִי בְאֵר אָמַר רַבִּי יִצְחָק, "בַּעֲבוּר הָיְתָה לִי" אֵין כְּתִיב כָּאן, אֶלָּא בַּעֲבוּר תִּהְיֶה לִּי לְעֵדָה.