Exodus 13:13

Exodus 13:13 AMP

Every firstborn of a donkey you shall redeem by [substituting] a lamb [as a sacrifice for it], but if you do not [wish to] redeem it, then you shall break its neck; and every firstborn among your sons you shall redeem [that is, ‘buy back’ from God with a suitable sacrifice].
AMP: Amplified Bible