Rabbi Elazar said: What is the meaning of what is written, "And in you shall all the families of the earth be blessed" (Genesis 12:3)? Even the families that dwell upon the earth are blessed only for the sake of Israel. "All the nations of the earth" (Genesis 18:18): even the ships that come from Gaul to Spain are blessed only for the sake of Israel. The Holy One, blessed be He, said to Abraham: I have two good shoots (berikhot) to graft into you, Ruth the Moabite and Naamah the Ammonite.
All the Families of the Earth Blessed Only for the Sake of Israel
Yalkut Shimoni on Torah 65:2
אָמַר רַבִּי אֶלְעָזָר: מַאי דִּכְתִיב: וְנִבְרְכוּ בְךָ כֹּל מִשְׁפְּחֹת הָאֲדָמָה, אֲפִלּוּ מִשְׁפָּחוֹת הַדָּרוֹת בָּאֲדָמָה אֵין מִתְבָּרְכִין אֶלָּא בִּשְׁבִיל יִשְׂרָאֵל. "כֹּל גּוֹיֵי הָאָרֶץ", אֲפִלּוּ סְפִינוֹת הַבָּאוֹת מִגַּלְיָא לְאַסְפַּמְיָא אֵין מִתְבָּרְכוֹת אֶלָּא בִּשְׁבִיל יִשְׂרָאֵל. אָמַר הַקָּדוֹשׁ בָּרוּךְ הוּא לְאַבְרָהָם: שְׁתֵּי בְּרִיכוֹת טוֹבוֹת יֵשׁ לִי לְהַבְרִיךְ בְּךָ: רוּת הַמּוֹאֲבִיָּה וְנַעֲמָה הָעַמּוֹנִית.