Koheles Rabba 11,1 describes the piety of Rabbi Elazar ben Shamua the Tanna accorded to a poor gentile who had lost everything:
רַבִּי אֶלְעָזָר בֶּן שָׁמוּעַ הֲוָה מְטַיֵּיל עַל כֵּיף יַמָּא רַבָּה, חֲמָא אִילְפָא דְּמִיטָרְפָא בְּיַמָּא, כַּהֲרִיפַת עַיִן טְבַעַת וּטְבַע כָּל מַה דַּהֲוָה בָּהּ, חֲמָא חַד גְּבַר דִּיתֵיב עַל קוּרְשָׁא דִּסְפִינְתָּא, מִגַּלָּא לְגַלָּא סְלֵיק לְיַבֶּשְׁתָּא כַּד הוּא הֲוָה עַרְטִילָאי, וַהֲוָה מִיטַּמַּר בְּכֵיף יַמָּא הֲוָה עַל רַבִּי אֶלְעָזָר בֶּן שָׁמוּעַ שֶׁבַע אִיצְטַלְוָון, שְׁלַח חַד וְיַהֲבֵיהּ לֵיהּ, אוֹבְלֵיהּ לְבֵיתֵיהּ וְאוֹכְלֵיהּ וְאַשְׁקֵיהּ וִיהַב לֵיהּ תְּרֵין מָאוָון דִּינָרִין, וְאַרְכְּבֵיהּ אַרְבְּעָה עֲשַׂר פַּרְסִין, וַעֲבַד לֵיהּ יְקָרָא סַגִּי עַד דְּאַעְלֵיהּ לְבֵיתֵיהּ. לְבָתַר יוֹמִין מֵת קֵיסָר הָרָשָׁע וְאֵימַנּוֹ לֵיהּ מַלְכָּא תְּחוֹתֵיהּ אָמַר לֵיהּ אִית עִמִּי אַרְבַּעַת אַלְפִין דִּינָרִין, סַב יַתְהוֹן וְאִיתְרַחַם עֲלֵיהוֹן. אֲמַר לֵיהּ אַרְבְּעָה אַלְפִין הַלָּלוּ יְהוֹן לָךְ יְהִיבִין חֲלַף תְּרֵין מָאוָון דִּיהַבְתְּ לִי, וּמְדִינְתָּא כּוּלָּהּ תְּהֵא מִשְׁתַּזְּבָא בְּגִינָךְ, חֲלַף מֵיכְלָא וּמִישְׁתְּיָא דְּאוֹכֵלְתְּ וְאַשְׁקֵת יָתִי. וְעוּל לְבֵי גְּעָא וְגִנְזֵי דִּידִי וְסַב לָךְ שַׁבְעִין אִיצְטַלְוָון דִּלְבוּשָׁן, חֲלַף אִיצְטְלָא דִּיהַבְתְּ לִי, וְזִיל בִּשְׁלָם עַל אוּמָּתָךְ וְאַשְׁבִּיקִין בְּגִינָךְ, וּקְרוֹן עֲלוֹי: שַׁלַּח לַחְמְךָ עַל פְּנֵי הַמָּיִם
Rabbi Elazar Ben Shamua was strolling on the sea side, he saw a boat sinking in the sea and one man survived by grabbing hold of a wooden plank and slowly floated on the waves till he reached the shore. He was completely naked bereft of all his belongings, Rabbi Elazar who had 7 cloaks and gave this man one of them to cover himself, he took him to his house fed him and gave him to drink and gave him 200 dinars and rode him on his horse for 14 pharsangs (56km) till the man's house and accorded the man heaps of honour. After many years Ceasar died and this man became the the ruler of Rome and saved the city from being destroyed thanks to Rabbi Elazar, and he got payed back many times over for his kindness
Of this event They quoted about Rabbi Elazar (Koheles 11,1):"Send your bread on the face of the water for after many days you will retrieve it" i.e kindness is repaid