Exodus 21:29

Amplified Bible (AMP)
But if the ox has tried to gore on a previous occasion, and its owner has been warned, but has not kept it confined and it kills a man or a woman, the ox shall be stoned and its owner shall be put to death as well.

Read Exodus 21:29 in other translations