Exodus 22:29-30
22:29 “Do not hold back offerings from your granaries or your vats. You must give me the firstborn of your sons.
22:30 You must also do this for your oxen and for your sheep; seven days they may remain with their mothers, but give them to me on the eighth day.