Parashas Bamidbar
וְלָקַחְתָּ֗ חֲמֵ֧שֶׁת חֲמֵ֛שֶׁת שְׁקָלִ֖ים לַגֻּלְגֹּ֑לֶת בְּשֶׁ֤קֶל הַקֹּ֙דֶשׁ֙ תִּקָּ֔ח עֶשְׂרִ֥ים גֵּרָ֖ה הַשָּֽׁקֶל׃
take five shekels per head—take this by the sanctuary weight, twenty gerahs to the shekel—
Torah Temimah points to TT / Bechoros procedure (verified).
ולקחת חמשת וגו׳ — כיצד עשה? הביא כ״ב אלפים פתקאות וכתב עליהן בן לוי, ועל רע״ג כתב חמשה שקלים.
English: “And you shall take five\ldots” — How did he do it? He brought 22,000 lots and wrote on them “son of Levi,” and on 273 he wrote “five shekels.”
Custom
Chazal describe the lot procedure used to select which firstborn paid the five shekels.