Leviticus 22:27

"When a bull or a sheep or a goat is born, it shall be seven days with its mother; and from the eighth day and thereafter it shall be accepted as an offering made by fire to the LORD.

Surrounding context

22:26 And the LORD spoke to Moses, saying:

22:27 "When a bull or a sheep or a goat is born, it shall be seven days with its mother; and from the eighth day and thereafter it shall be accepted as an offering made by fire to the LORD.

22:28 Whether it is a cow or ewe, do not kill both her and her young on the same day.

Translation and sources