Leviticus 22:17-25

Unacceptable animal offerings

17 The LORD said to Moses:
18 Tell Aaron, his sons, and all the Israelites: Whenever someone from Israel's house or from the immigrants in Israel presents their offering to the LORD as an entirely burned offering—whether it is payment for a solemn promise or a spontaneous gift—
19 for it to be acceptable on your behalf, it must be a flawless male from the herd, the sheep, or the goats.
20 You must not present anything that has an imperfection, because it will not be acceptable on your behalf.
21 Whenever someone presents a communal sacrifice of well-being to the LORD from the herd or flock—whether it is payment for a solemn promise or a spontaneous gift—it must be flawless to be acceptable; it must not have any imperfection.
22 You must not present to the LORD anything that is blind or that has an injury, mutilation, warts, a rash, or scabs. You must not put any such animal on the altar as a food gift for the LORD.
23 You can, however, offer an ox or sheep that is deformed or stunted as a spontaneous gift, but it will not be acceptable as payment for a solemn promise.
24 You must not offer to the LORD anything with bruised, crushed, torn, or cut-off testicles. You must not do that in your land.
25 You are not allowed to offer such animals as your God's food even if they come from a foreigner. Because these animals have blemishes and imperfections in them, they will not be acceptable on your behalf.