Parshas Mishpatim · Passuk 21:37
Chabad.org — English translation + Rashi
Torah Temimah points to בבא קמא ס״ח א׳ (verified).
Sefaria — Exodus 21:37
Sefaria — בבא קמא ס״ח א׳
English: “Five oxen and four sheep” — this teaches that he pays only from the same species as the stolen animal.
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.