Parashas Bamidbar
קַ֣ח אֶת־הַלְוִיִּ֗ם תַּ֤חַת כׇּל־בְּכוֹר֙ בִּבְנֵ֣י יִשְׂרָאֵ֔ל וְאֶת־בֶּהֱמַ֥ת הַלְוִיִּ֖ם תַּ֣חַת בְּהֶמְתָּ֑ם וְהָיוּ־לִ֥י הַלְוִיִּ֖ם אֲנִ֥י יְהֹוָֽה׃
Take the Levites in place of all the male first-born among the Israelite people, and the cattle of the Levites in place of their cattle; and the Levites shall be Mine, GOD’s.
Torah Temimah points to TT / Bechoros (verified).
תחת בהמתם — מלמד דשה אחר של בן לוי פוטר כמה פטרי חמורים מישראל.
English: “In place of their animals” — this teaches that one sheep of a Levite exempts several firstborn donkeys of an Israelite.
Custom
Chazal derive the rules of redeeming firstborn donkeys from the substitution language of this verse.