Deuteronomy 23:2

New Living Translation Bible (NLT)
“If a person is illegitimate by birth, neither he nor his descendants for ten generations may be admitted to the assembly of the Lord.

Read Deuteronomy 23:2 in other translations