Exodus 21:22

Amplified Bible (AMP)
“If men fight with each other and injure a pregnant woman so that she gives birth prematurely [and the baby lives], yet there is no further injury, the one who hurt her must be punished with a fine [paid] to the woman’s husband, as much as the judges decide.

Read Exodus 21:22 in other translations