Parshas Acharei Mos · Passuk 18:17
Chabad.org — English translation + Rashi
Torah Temima points to Sanhedrin 75a.
English: The parallel expression “zimah hi” teaches that the higher generations are treated like the lower generations.
Gezeirah shavah — up and down the generations
Marrying a woman and her mother (or grandmother) is forbidden just as marrying a woman and her daughter (or granddaughter).