Exodus 21:30

Amplified Bible (AMP)
If a ransom is demanded of him [in return for his life], then he shall give whatever is demanded for the redemption of his life.

Read Exodus 21:30 in other translations