Exodus 21:28

If an ox gore a man or a woman, that they die: then the ox shall be surely stoned, and his flesh shall not be eaten; but the owner of the ox shall be quit.

Cross-reference

Exodus 21:32 gives a different penalty when an ox kills a slave — 30 shekels instead of only stoning the ox — contrasting with the free person case.

Exodus 19:13 similarly requires stoning an animal that violates the sacred mountain, showing a pattern of animal capital punishment for serious offenses.

Genesis 9:5 Allusion

Genesis 9:5 establishes God's requirement of life from animals that kill humans — the foundation for stoning the ox here.