Shemot / Exodus 18:21 · Remez
וְאַתָּה תֶחֱזֶה מִכָּל־הָעָם אַנְשֵׁי־חַיִל יִרְאֵי אֱלֹהִים אַנְשֵׁי אֱמֶת שֹׂנְאֵי בָצַע וְשַׂמְתָּ עֲלֵהֶם שָׂרֵי אֲלָפִים שָׂרֵי מֵאוֹת שָׂרֵי חֲמִשִּׁים וְשָׂרֵי עֲשָׂרֹת׃
And you shall seek out from all the people capable men, who fear the Almighty, men of truth, who hate unjust gain, and set them over them as officers of thousands, officers of hundreds, officers of fifties and officers of tens.
Remez רֶמֶז
Two fears
You can be afraid of punishment, or you can stand before something great and hold your breath though nothing threatens you. Agra DeKala finds these two fears in the count of the words of the Torah.
Agra DeKala: the words "who fear the Almighty" occur twice in Tanakh, and this is a hint: there are two fears. The lower one is fear of punishment. The higher one is awe before the greatness of the King, even when nothing threatens. A judge needs the lower fear to restrain the wicked, but he himself must be one of the "men of truth", with the higher fear.
How Agra DeKala explain it
Agra DeKala "Who fear the Almighty" (Shemot / Exodus 18:21)
Twice in the scribes' count (מָסוֹרָה): here, and "Come, listen, and I will tell, all you who fear the Almighty" (Tehillim / Psalms 66:16). The hint of the scribes' count is this: there is fear and there is fear. There is fear of punishment, this is the lower fear, and it arouses, Heaven forbid, harsh judgments. But the main thing in fear is that a person fears the Holy One, blessed is He, because He is great and rules, the root and foundation of all worlds (Zohar I 11b).
It is like one who sees the king in his glory: fear of him comes upon him, though he knows the king will do him nothing. And still, when he looks into what the king truly is, fear comes upon him. This is what it says: "Fear the Eternal, my son, and the king" (Mishlei / Proverbs 24:21), that is, make Him king over you (Bamidbar Rabbah 15:14).
Yet the lower fear is needed too, to put fear on the wicked so that they return from their evil way. And surely a judge also needs the lower fear, but he himself must be one of the "men of truth", and that is the higher fear. This is what it says: "who fear the Almighty", meaning fear of judgment, and "men of truth", as said above. And what is the lower fear needed for? To tell. This is what it says: "Come, listen, and I will tell, all you who fear the Almighty." I have been brief, and the one who understands will understand.
Takeaway
The scribes' count (מָסוֹרָה) is the notes in the margins of Tanakh on how many times a word or phrase occurs. Commentators see a hint in what links places with the same words.
The words "the main thing in fear is to fear Him because He is great and rules" Agra DeKala brings from the Zohar (Zohar I 11b).
"Fear the Eternal, my son, and the king" (Mishlei / Proverbs 24:21). The midrash reads "and the king" (וָמֶלֶךְ) as "and make king" (Bamidbar Rabbah 15:14): fear the Eternal because you have made Him king over you.
The lower fear is needed "to tell": in the verse of Psalms "those who fear the Almighty" are the ones who are told what He did. This is how Agra DeKala links the two places.