Leviticus 22:17-30 ESV
And the LORD spoke to Moses, saying, “Speak to Aaron and his sons and all the people of Israel and say to them, When any one of the house of Israel or of the sojourners in Israel presents a burnt offering as his offering, for any of their vows or freewill offerings that they offer to the LORD, if it is to be accepted for you it shall be a male without blemish, of the bulls or the sheep or the goats. You shall not offer anything that has a blemish, for it will not be acceptable for you. And when anyone offers a sacrifice of peace offerings to the LORD to fulfill a vow or as a freewill offering from the herd or from the flock, to be accepted it must be perfect; there shall be no blemish in it. Animals blind or disabled or mutilated or having a discharge or an itch or scabs you shall not offer to the LORD or give them to the LORD as a food offering on the altar. You may present a bull or a lamb that has a part too long or too short for a freewill offering, but for a vow offering it cannot be accepted. Any animal that has its testicles bruised or crushed or torn or cut you shall not offer to the LORD; you shall not do it within your land, neither shall you offer as the bread of your God any such animals gotten from a foreigner. Since there is a blemish in them, because of their mutilation, they will not be accepted for you.” And the LORD spoke to Moses, saying, “When an ox or sheep or goat is born, it shall remain seven days with its mother, and from the eighth day on it shall be acceptable as a food offering to the LORD. But you shall not kill an ox or a sheep and her young in one day. And when you sacrifice a sacrifice of thanksgiving to the LORD, you shall sacrifice it so that you may be accepted. It shall be eaten on the same day; you shall leave none of it until morning: I am the LORD.