Parshas Mishpatim · Passuk 21:37
Chabad.org — English translation + Rashi
Torah Temimah points to בבא קמא ע״ט א׳ (verified).
Sefaria — Exodus 21:37
Sefaria — בבא קמא ע״ט א׳
English: Our Rabbis taught: If a thief consecrated the animal he pays the fourfold or fivefold. Why? Because the verse says “or sells it” — what difference is there between selling it to a layman and selling it to Heaven?
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.