Another interpretation: "from generation" - the life of this world; "and from generation" - the life of the world to come. Rabbi Eleazar of Modi'in says: from the generation of Moses and from the generation of Samuel. Rabbi Eliezer says: from the generation of the Messiah, which is three generations, as it is said, "They shall fear You with the sun, and before the moon, generation of generations" (Psalms 72:5).
Yalkut Shimoni on Torah 267:3
Yalkut Shimoni on Torah 267:3
דָּבָר אַחֵר, מִדֹּר, חַיֵּי הָעוֹלָם הַזֶּה, וּמִדֹּר, חַיֵּי הָעוֹלָם הַבָּא. רַבִּי אֶלְעָזָר הַמוֹדָעִי אוֹמֵר, מִדּוֹרוֹ שֶׁל מֹשֶׁה וּמִּדּוֹרוֹ שֶׁל שְׁמוּאֵל. רַבִּי אֱלִיעֶזֶר אוֹמֵר, מִדּוֹרוֹ שֶׁל מָשִׁיחַ שֶׁהֵם שְׁלֹשָׁה דּוֹרוֹת, שֶׁנֶּאֱמַר "יִירָאוּךָ עִם שֶׁמֶשׁ וְלִפְנֵי יָרֵחַ דּוֹר דּוֹרִים".