Exodus 21:19

If he rise again, and walk abroad upon his staff, then shall he that smote him be quit: only he shall pay for the loss of his time, and shall cause him to be thoroughly healed.

Cross-reference

Exodus 21:27 shows a parallel law for slaves — a master who knocks out a tooth must free the slave, contrasting with the compensation for free persons here.