Vayikra27:32

וְכָל־מַעְשַׂר בָּקָר וָצֹאן כֹּל אֲשֶׁר־יַעֲבֹר תַּחַת הַשָּׁבֶט הָעֲשִׂירִי יִהְיֶה־קֹּדֶשׁ לַיהוָה׃

And every tithe of the herd and the flock, all that passes under the staff, the tenth shall be holy to the Eternal.

Vayikra 27:32

וְכָל־מַעְשַׂר בָּקָר וָצֹאן

Vayikra / Leviticus 27:32 · Remez

Vayikra 27:32

וְכָל־מַעְשַׂר בָּקָר וָצֹאן כֹּל אֲשֶׁר־יַעֲבֹר תַּחַת הַשָּׁבֶט הָעֲשִׂירִי יִהְיֶה־קֹּדֶשׁ לַיהוָה׃

And every tithe of the herd and the flock, all that passes under the staff, the tenth shall be holy to the Eternal.

Remez רֶמֶז

Under the staff and under the mother

One small word can tie together two distant laws. What do a shepherd's staff and the mother of a newborn lamb have in common?

Rabbeinu Bahya: the tithe is taken only from animals born in one's own flock. The word "under" (תַּחַת) ties the staff to the law of offerings, "seven days under its mother": as a hybrid, one born through the side and an orphan are unfit as offerings, so they are unfit for the tithe. Chizkuni: the word "tenth" is so strong that even an animal called "tenth" by mistake becomes holy.

How Rabbeinu Bahya and Chizkuni explain it

Rabbeinu Bahya Under the staff

The animal tithe applies not to animals a person bought or became a partner in, but only to those born in his flock. The same holds for the duty of the firstborn, for it says: "of your herd and of your flock" (Devarim / Deuteronomy 15:19). If he bought lambs at the market, he is free of the tithe and free of the firstborn. So too a hybrid, an animal that resembles another kind, one born through the side, and an orphan, that is, an animal whose mother died as it was born: she departs to death and it departs to life. None of these enter the pen to be tithed, for they are unfit as offerings, and we learn the animal tithe from the offering.

So the sages said in the last chapter of tractate Sotah: here it is written "under the staff" (תַּחַת הַשָּׁבֶט), and there it is written: "and it shall be seven days under its mother" (תַּחַת אִמּוֹ) (Vayikra / Leviticus 22:27). And we expound: "an ox or a sheep," excluding a hybrid, "or a goat," excluding one that resembles another kind, "when it is born," excluding one born through the side, "and it shall be seven days under its mother," excluding an orphan. As there all these names are excluded, hybrid, resembling, born through the side and orphan, for all are excluded by the verse, so here, where it is written "under the staff," all these names are excluded.

Chizkuni The tenth shall be holy

The tenth sanctifies the one before it and the one after it. How? If he called the ninth "tenth" or the eleventh "tenth," the name takes hold of it, and it becomes a peace offering.

Takeaway

The sages link two verses by a shared word, "under" (תַּחַת). Such an inference is called gezerah shavah (גְּזֵרָה שָׁוָה): the same word in two places teaches that the law there is one.
"Born through the side" (יוֹצֵא דֹפֶן) is an animal born not in the usual way but through an incision.