Deuteronomy 23:2
No one of illegitimate birth may enter the assembly of the LORD, nor may any of his descendants, even to the tenth generation.
Berean Standard Bible
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.
A person born of a forbidden union shall not enter into the LORD’s assembly; even to the tenth generation shall no one of his enter into the LORD’s assembly.