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

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

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.

Pshat פְּשָׁט

Who is the father, who are the elders?

Rashi: remember what the Eternal did to the generations that angered Him, and understand that He can give you the days of Mashiach and the world to come. The "father" is the prophets, the "elders" are the sages. Chizkuni: even before Israel came into the world, the Eternal was preparing a place for them.

How Rashi and Chizkuni explain it

Remez רֶמֶז

Three generations in two words

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

Drash דְּרָשׁ

Ask your father and light a candle

Sifrei: remember what the Eternal did to the generation of the Flood, the generation of the dispersion and Sodom and Gomorrah. Every generation has people like them, but each is judged by their deeds. Talmud: over the Chanukah candle the blessing says "and commanded us", though the Torah does not say so, and Rav Nechemya finds the command in the words "Ask your father, and he will tell you".

How Sifrei and Talmud, Shabbat explain it

Sod סוֹד

If the first were angels

Shem MiShmuel: "year" (שָׁנָה) is linked to the word "change" (שִׁנּוּי), and everything is known through its opposite, as light through darkness. So the Torah tells us to remember the earlier generations: without them a generation "pure in its own eyes" would not see how low it is. The sages said: if the first were like angels, we are like people, and if the first were like people, we are like donkeys.

How Shem MiShmuel explain it