Quoting Commentary for I Chronicles 9:22

כֻּלָּ֤ם הַבְּרוּרִים֙ לְשֹׁעֲרִ֣ים בַּסִּפִּ֔ים מָאתַ֖יִם וּשְׁנֵ֣ים עָשָׂ֑ר הֵ֤מָּה בְחַצְרֵיהֶם֙ הִתְיַחְשָׂ֔ם הֵ֣מָּה יִסַּ֥ד דָּוִ֛יד וּשְׁמוּאֵ֥ל הָרֹאֶ֖ה בֶּאֱמוּנָתָֽם׃

All these that were chosen to be porters in the gates were two hundred and twelve. These were reckoned by genealogy in their villages, whom David and Samuel the seer did ordain in their set office.

Rashi

that he had by the spirit As Samuel the Seer showed him, as it is written (above 9:22): “... whom David and Samuel established permanently.” Our Rabbis said (Zeb. 54b) (I Sam. 19:22): “... and he asked and said, ‘Where are Samuel and David?’ And one said, ‘Behold at Naioth in Ramah.’” They were engaged in the building of the world. That refers to the Temple. And he taught him at that time what a faithful student cannot learn in many years. (Mid. Sam. 22:4)
Ask a RabbiBookmarkShareCopy

Rashi

at the thresholds Heb. בַּאֲסֻפֵּי, like בְּסִיפֵּי הַשְּׁעָרִים, at the thresholds of the gates.
Ask a RabbiBookmarkShareCopy