Num Numbers, chapter Book of Numbers, chapter 18
everyone opening a womb of all flesh which they bring near to YHWH, among man and among beast, is yours; only, you certainly ransom the firstborn of man, and you ransom the firstling of the unclean beast. Exo 34:19