Deuteronomy 23:1

:

He who is wounded in the stones, or has his privy member cut off, shall not enter into the assembly of Yahweh.