Shemot21:24

עַיִן תַּחַת עַיִן שֵׁן תַּחַת שֵׁן יָד תַּחַת יָד רֶגֶל תַּחַת רָגֶל׃

eye for eye, tooth for tooth, hand for hand, foot for foot,

Shemot 21:24

עַיִן תַּחַת עַיִן

Shemot / Exodus 21:24 · Remez

Shemot 21:24

עַיִן תַּחַת עַיִן שֵׁן תַּחַת שֵׁן יָד תַּחַת יָד רֶגֶל תַּחַת רָגֶל׃

eye for eye, tooth for tooth, hand for hand, foot for foot,

Remez רֶמֶז

The small word "for"

How are the sages so sure that "eye for eye" means money? The answer is hidden in one word that stands four times in the verse.

Rav Ashi hears the key in the word "for" (תַּחַת): the same word stands in the law of the ox, "ox for ox", and there it plainly means money. Ben Azzai in the Mekhilta reasons the same way: "bruise for bruise" is a payment, so everything that says "for" is a payment. Except life: no ransom is taken for the life of a murderer.

How Talmud, Bava Kamma and Mekhilta DeRabbi Shimon bar Yochai explain it

Talmud, Bava Kamma Rav Ashi said

It is learned from "for" and "for" (תַּחַת), as in the law of the ox. Here it is written: "eye for eye" (Shemot / Exodus 21:24), and there it is written: "he shall pay ox for ox" (Shemot / Exodus 21:36). Just as there it means money, so here it means money.

Mekhilta DeRabbi Shimon bar Yochai Eye for eye

He pays for the damage, the value of his eye.

Ben Azzai says: here it says "bruise for bruise" (Shemot / Exodus 21:25), and above it says: "and a man strikes his fellow with a stone or with a fist" (Shemot / Exodus 21:18). That is a bruise. Just as of the bruise mentioned above it says "he shall pay for his idleness and see to his healing" (Shemot / Exodus 21:19), so here: for idleness and for healing. The bruise was included in the general rule and left it to teach, not about itself alone, but about the whole rule: just as the bruise, of which "for" is said, is a payment, so everything of which "for" is said is a payment.

Could "life for life" be so too? The Torah says: "you shall take no ransom for the life of a murderer" (Bamidbar / Numbers 35:31). For the life of a murderer you take no ransom, but for limbs you do take ransom.

Takeaway

The word תַּחַת means both "under" and "instead of, in exchange". In "eye for eye, tooth for tooth, hand for hand, foot for foot" it stands four times.
Comparison of identical words (גְּזֵרָה שָׁוָה) is a method of interpretation: the law of one place is carried to another where the same word stands.
"Ox for ox" (Shemot / Exodus 21:36): the owner of an ox that gored another's ox gives a live ox in exchange. No one kills his own ox as a punishment.
The Mekhilta of Rabbi Shimon bar Yochai is an ancient midrash of laws on the book of Shemot, linked to the name of Rabbi Shimon bar Yochai.
"Left the general rule to teach about the whole rule" is one of the thirteen rules of interpreting the Torah: a particular case reveals the law for all cases.