(Genesis 21:8) What is meant by what is written, "And the child grew"? In the future the Holy One, blessed be He, will make a banquet for the righteous on the day He bestows lovingkindness upon the seed of Isaac. After they eat and drink, they give Abraham the cup of blessing to recite the grace. He says, I will not recite the blessing, for Ishmael came forth from me. He says to Isaac, Take it and bless. He says, I will not recite the blessing, for Esau came forth from me. He says to Jacob, Take it and bless. He says, I will not recite the blessing, for I married two sisters in their lifetimes, which the Torah was destined to forbid me. He says to Moses, Take it and bless. He says, I will not recite the blessing, for I did not merit to enter the Land of Israel, neither in my life nor in my death. He says to Joshua, Take it and bless. He says, I will not recite the blessing, for I did not merit a son, as it is written (1 Chronicles 7:27), "Nun his son, Joshua his son." He says to David, Take it, you, and bless. And he says, I will bless, and it is fitting for me to bless, as it is said (Psalms 116:13), "I will lift up the cup of salvations" and so on.
The Cup of Blessing the Patriarchs Refuse and David Accepts
Yalkut Shimoni on Torah 93:4
(בראשית כ ח) מַאי דִּכְתִיב, וַיִּגְדַּל הַיֶּלֶד עָתִיד הַקָּדוֹשׁ בָּרוּךְ הוּא לַעֲשׂוֹת סְעוּדָה לַצַּדִּיקִים בְּיוֹם שֶׁיִּגְמֹל חֶסֶד לְזַרְעוֹ שֶׁל יִצְחָק לְאַחַר שֶׁאוֹכְלִין וְשׁוֹתִין נוֹתְנִין לוֹ לְאַבְרָהָם כּוֹס שֶׁל בְּרָכָה לְבָרֵךְ אוֹמֵר אֵינִי מְבָרֵךְ שֶׁיָּצָא מִמֶּנִי יִשְׁמָעֵאל. אוֹמֵר לְיִצְחָק טוֹל וּבָרֵךְ אוֹמֵר אֵינִי מְבָרֵךְ שֶׁיָּצָא מִמֶּנִי עֵשָׂו. אָמַר לְיַעֲקֹב טוֹל וּבָרֵךְ אוֹמֵר אֵינִי מְבָרֵךְ שֶׁנָּשָׂאתִי שְׁתֵּי אֲחָיוֹת בְּחַיֵּיהֶם. אוֹמֵר לְמֹשֶׁה טוֹל וּבָרֵךְ אוֹמֵר אֵינִי מְבָרֵךְ שֶׁלֹּא זָכִיתִי לִכָּנֵס לְאֶרֶץ יִשְׂרָאֵל לֹא בְּחַיַּי וְלֹא בְּמוֹתִי. אוֹמֵר לִיהוֹשֻׁעַ טוֹל וּבָרֵךְ אוֹמֵר אֵינִי מְבָרֵךְ שֶׁלֹּא זָכִיתִי לְבֶן, דִּכְתִיב, (דברי הימים א' ז, כז) "נוּן בְּנוֹ יְהוֹשֻׁעַ בְּנוֹ" אוֹמֵר לְדָוִד טוֹל אַתָּה וּבָרֵךְ, וְאוֹמֵר אֲנִי אֲבָרֵךְ, וְלִי נָאֶה לְבָרֵךְ, שֶׁנֶּאֱמַר, (תהלים קטז, יג) "כּוֹס יְשׁוּעוֹת אֶשָּׂא" וְגוֹ'.