“He took as a wife Yehudit” – Rabbi Yudan began: “God settles the lonely in a home…” (Psalms 68:7). This is the opinion of Rabbi Yehuda, as Rabbi Yehuda said: ‘Even if there is a mamzer at the end of the world and a mamzeret at the end of the world, the Holy One blessed be He brings them and matches them with one another.’ What is its source? “God settles the lonely in a home.” So, because it is written: “Rather, you shall destroy them: The Hittite, the Emorite” (Deuteronomy 20:17) – let this one, may his name be blotted out, come and marry that one, may her name be blotted out. “Esau was forty years old, and he took…”
Esau and the Patriarchs of Yehuda
Bereshit Rabbah 65:2