Devarim32:7

זְכֹר יְמוֹת עוֹלָם בִּינוּ שְׁנוֹת דּוֹר־וָדוֹר שְׁאַל אָבִיךָ וְיַגֵּדְךָ זְקֵנֶיךָ וְיֹאמְרוּ לָךְ׃

Remember the days of old, consider the years of generation after generation. Ask your father, and he will tell you, your elders, and they will say it to you.

Devarim 32:7

זְכֹר יְמוֹת עוֹלָם

Devarim / Deuteronomy 32:7 · Remez

Devarim 32:7

זְכֹר יְמוֹת עוֹלָם בִּינוּ שְׁנוֹת דּוֹר־וָדוֹר שְׁאַל אָבִיךָ וְיַגֵּדְךָ זְקֵנֶיךָ וְיֹאמְרוּ לָךְ׃

Remember the days of old, consider the years of generation after generation. Ask your father, and he will tell you, your elders, and they will say it to you.

Remez רֶמֶז

Three generations in two words

Sometimes one ending of a word changes the whole count. The sages count the generations in the words "generation after generation" and find in the verse both the future and the beginning of every person.

Sifrei: "the years of generation after generation" are the time of Mashiach, which has three generations, for Psalms says: "a generation of generations" (דּוֹר דּוֹרִים). Kitzur Ba'al HaTurim: "Remember" comes right after the words "He made you and established you": remember how He formed you in the womb from a putrid drop.

How Kitzur Ba'al HaTurim and Sifrei explain it

Kitzur Ba'al HaTurim Remember (זְכֹר)

That is, remember how He made you and established you (וַיְכֹנְנֶךָ) in the womb from a putrid drop.

Sifrei Consider the years of generation after generation

This is the generation of Mashiach, which has three generations, as it says: "They will fear You while the sun lasts and before the moon, a generation of generations (דּוֹר דּוֹרִים)" (Tehillim / Psalms 72:5).

Takeaway

"He made you and established you" (הוּא עָשְׂךָ וַיְכֹנְנֶךָ) ends the previous verse (Devarim / Deuteronomy 32:6).
"Where did you come from? From a putrid drop" are the Mishnah's words about what a person should remember (Mishnah Avot 3:1).
In the words "a generation of generations" (דּוֹר דּוֹרִים) "generation" (דּוֹר) is singular and "generations" (דּוֹרִים) plural, and Sifrei sees three generations in them.