Exodus 21:36

Amplified Bible (AMP)
Or if it is known that the ox was previously in the habit of goring, and its owner has not kept it confined, he must make restitution of ox for ox, and the dead [animal] shall be his.

Read Exodus 21:36 in other translations