Parshas Mishpatim · Passuk 21:37
Chabad.org — English translation + Rashi
Torah Temimah points to בבא קמא ס״ז ב׳ (verified).
Sefaria — Exodus 21:37
Sefaria — בבא קמא ס״ז ב׳
English: It was taught: “Five oxen shall he pay in place of the ox” — and not an ox in place of an ox; “four sheep in place of the sheep” — and not a sheep in place of a sheep.
On the daf / in context: See the cited source for the full section.
Derash on the verse.
The derashah of Torah Temimah on the words חמשה בקר ישלם תחת השור establishes the classical source and the operative rule derived from it.