Leviticus 22:19-29

19 to be acceptable in your behalf it shall be a male without blemish, of the cattle or the sheep or the goats.
20 You shall not offer anything that has a blemish, for it will not be acceptable in your behalf.
21 When anyone offers a sacrifice of well-being to the Lord, in fulfillment of a vow or as a freewill offering, from the herd or from the flock, to be acceptable it must be perfect; there shall be no blemish in it.
22 Anything blind, or injured, or maimed, or having a discharge or an itch or scabs—these you shall not offer to the Lord or put any of them on the altar as offerings by fire to the Lord.
23 An ox or a lamb that has a limb too long or too short you may present for a freewill offering; but it will not be accepted for a vow.
24 Any animal that has its testicles bruised or crushed or torn or cut, you shall not offer to the Lord; such you shall not do within your land,
25 nor shall you accept any such animals from a foreigner to offer as food to your God; since they are mutilated, with a blemish in them, they shall not be accepted in your behalf.
26 The Lord spoke to Moses, saying:
27 When an ox or a sheep or a goat is born, it shall remain seven days with its mother, and from the eighth day on it shall be acceptable as the Lord's offering by fire.
28 But you shall not slaughter, from the herd or the flock, an animal with its young on the same day.
29 When you sacrifice a thanksgiving offering to the Lord, you shall sacrifice it so that it may be acceptable in your behalf.