Leviticus 22:19-25

22:19 if it is to be acceptable for your benefit it must be a flawless male from the cattle, sheep, or goats. 22:20 You must not present anything that has a flaw, because it will not be acceptable for your benefit. 22:21 If a man presents a peace offering sacrifice to the Lord for a special votive offering or for a freewill offering from the herd or the flock, it must be flawless to be acceptable; it must have no flaw.

22:22 “‘You must not present to the Lord something blind, or with a broken bone, or mutilated, or with a running sore, or with a festering eruption, or with a feverish rash. You must not give any of these as a gift on the altar to the Lord. 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.’”