Deuteronomy 23:1

Exclusion From the Assembly

1 No one who has been emasculated by crushing or cutting may enter the assembly of the LORD.

Read Deuteronomy 23:1 Using Other Translations

He that is wounded in the stones, or hath his privy member cut off, shall not enter into the congregation of the LORD.
"No one whose testicles are crushed or whose male organ is cut off shall enter the assembly of the LORD.
“If a man’s testicles are crushed or his penis is cut off, he may not be admitted to the assembly of the LORD .