Deuteronomy 23:1

King James Version Bible (KJV)
He that is wounded in the stones, or hath his privy member cut off, shall not enter into the congregation of the Lord.

Read Deuteronomy 23:1 in other translations