וַיַּפִּ֨ילוּ גוֹרָל֜וֹת כַּקָּטֹ֧ן כַּגָּד֛וֹל לְבֵ֥ית אֲבוֹתָ֖ם לְשַׁ֥עַר וָשָֽׁעַר׃ (פ)
And they cast lots, as well the small as the great, according to their fathers’houses, for every gate.
Read midrashic interpretation of I Chronicles 26:13: and classical rabbinic exegesis.