Parshas Kedoshim · Passuk 19:29
Chabad.org — English translation + Rashi
Torah Temimah on Vayikra 19:29 · Yoma 18b · Rambam
And the land be filled with lewdness — A man should not marry a woman from one province and then another, lest their children meet and a brother marry his sister.
Classical derasha (TT)
Scattered unknown offspring create incest risk; a known great man is treated differently.