Vayikra / Leviticus 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.
Pshat פְּשָׁט
Under the staff
Rashi: the tithe is set aside like this: the animals are led out through an opening one by one, and every tenth is marked with a staff dipped in red paint. It is holy: the blood and fat are brought to the altar, and the owners eat the meat. Netziv: the verse teaches that setting aside the animal tithe is a commandment. HaKtav VeHaKabbalah: the lambs pass by themselves: the mothers stand outside, and the young come out at their voice.
How Rashi, Haamek Davar, and HaKtav VeHaKabbalah explain it
Remez רֶמֶז
Under the staff and under the mother
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
Drash דְּרָשׁ
A mistake in counting
Lekach Tov: herd and flock are counted separately, and new lambs are not mixed with old ones. A torn animal does not pass under the staff. The unborn young of a pregnant animal is not counted: it is part of its mother. By Rabbi Meir, if a man called the ninth and the eleventh "tenth," all three become holy. And at the end the midrash brings words on the humility of Rabbi: he spoke in Rabbi Meir's name without naming him outright.
How Midrash Lekach Tov explain it
Sod סוֹד
The tenth level
Mei HaShiloach: the tenth animal is not chosen, it simply turns out tenth under the staff. So too a person whom the Eternal has raised: even if he seems unworthy, do not speak ill of him, he is marked for the Eternal. Noam Elimelech: "the tenth shall be holy" is the highest, tenth level of holiness. Cleaving to the Eternal comes and goes, and even one who reaches the tenth level sees only "the tops of the mountains," for the service of the Creator has no end.
How Mei HaShiloach and Noam Elimelech explain it