Deuteronomy 23:2

New International Version Bible (NIV)
No one born of a forbidden marriage[b] nor any of their descendants may enter the assembly of the Lord, not even in the tenth generation.

Read Deuteronomy 23:2 in other translations