2 No one born of a forbidden marriagea nor any of their descendants may enter the assembly of the LORD, not even in the tenth generation.

Read Deuteronomy 23:2 Using Other Translations

A bastard shall not enter into the congregation of the LORD; even to his tenth generation shall he not enter into the congregation of the LORD.
"No one born of a forbidden union may enter the assembly of the LORD. Even to the tenth generation, none of his descendants may enter the assembly of the LORD.
“If a person is illegitimate by birth, neither he nor his descendants for ten generations may be admitted to the assembly of the LORD .