Leviticus 22:23-25

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. 22:25 Even from a foreigner you must not present the food of your God from such animals as these, for they are ruined and flawed; they will not be acceptable for your benefit.’”