The firstborn of a donkey you shall redeem with a lamb, or if you will not redeem it you shall break its neck. All the firstborn of your sons you shall redeem. And none shall appear before me empty-handed.
— Exodus 34:20
Every firstborn creature must be the Lord's, but since the ass was unclean, it could not be presented in sacrifice.