Deuteronomy 23:1 (KJV)

He that is wounded in the stones, or hath his privy member cut off, shall not enter into the congregation of the LORD.