4:22
وَلَا تَنكِحُوا۟ مَا نَكَحَ ءَابَآؤُكُم مِّنَ ٱلنِّسَآءِ إِلَّا مَا قَدْ سَلَفَ ۚ إِنَّهُۥ كَانَ فَـٰحِشَةً وَمَقْتًا وَسَآءَ سَبِيلًا
walā tankiḥū mā nakaḥa ābāukum mina l-nisāi illā mā qad salafa innahu kāna fāḥishatan wamaqtan wasāa sabīlan
Do not marry women that your fathers married- with the exception of what is past- this is indeed a shameful thing to do, loathsome and leading to evil.
And marry not women whom your fathers married, except what has already passed; indeed it was shameful and most hateful, and an evil way.