Old Testament

Exodus 13:12
12then you must dedicate the firstborn of every mother to the Lord. Every firstborn of your livestock, the ones that are males, will belong to the Lord.