Exodus 21:30

But if they have imposed a price on him, he shall give, in exchange for his life, whatever is asked

Other versions

King James Version

If there be laid on him a sum of money, then he shall give for the ransom of his life whatsoever is laid upon him.

English Standard Version

If a ransom is imposed on him, then he shall give for the redemption of his life whatever is imposed on him.

New International Version

However, if payment is demanded of him, he may redeem his life by paying whatever is demanded.