Leviticus 22:23-24
22:23 As for an ox or a sheep with a limb too long or stunted, you may present it as a freewill offering, but it will not be acceptable for a votive offering.
22:24 You must not present to the Lord something with testicles that are bruised, crushed, torn, or cut off; you must not do this in your land.