Devarim1:17

לֹא־תַכִּירוּ פָנִים בַּמִּשְׁפָּט כַּקָּטֹן כַּגָּדֹל תִּשְׁמָעוּן לֹא תָגוּרוּ מִפְּנֵי־אִישׁ כִּי הַמִּשְׁפָּט לֵאלֹהִים הוּא וְהַדָּבָר אֲשֶׁר יִקְשֶׁה מִכֶּם תַּקְרִבוּן אֵלַי וּשְׁמַעְתִּיו׃

Do not show favour in judgement: hear the small and the great alike. Do not be afraid of any man, for the judgement is the Almighty's. And the case that is too hard for you, bring to me, and I will hear it."

Devarim 1:17

לֹא־תַכִּירוּ פָנִים בַּמִּשְׁפָּט

Devarim / Deuteronomy 1:17 · Remez

Devarim 1:17

לֹא־תַכִּירוּ פָנִים בַּמִּשְׁפָּט כַּקָּטֹן כַּגָּדֹל תִּשְׁמָעוּן לֹא תָגוּרוּ מִפְּנֵי־אִישׁ כִּי הַמִּשְׁפָּט לֵאלֹהִים הוּא וְהַדָּבָר אֲשֶׁר יִקְשֶׁה מִכֶּם תַּקְרִבוּן אֵלַי וּשְׁמַעְתִּיו׃

Do not show favour in judgement: hear the small and the great alike. Do not be afraid of any man, for the judgement is the Almighty's. And the case that is too hard for you, bring to me, and I will hear it."

Remez רֶמֶז

Twice "hear"

Sometimes the same word stands in two places in the Torah, and the scholars link them. Two "hear"s give a rule about whom to hear first.

Kitzur Ba'al HaTurim: the word "hear" (תִּשְׁמָעוּן) appears twice, the second time about a prophet: "him you shall hear". Though one must hear the small as the great, the case of a prophet or a Torah scholar is heard first. Agra DeKala: the doubled "as" (כְּ) makes each equal to the other. A judge may prefer to hear the big case, or the small one because it is less trouble, and the Torah warns against both.

How Kitzur Ba'al HaTurim and Agra DeKala explain it

Kitzur Ba'al HaTurim You shall hear

Twice in the count of the scribes (מָסוֹרָה). Here, and the second: "A prophet I will raise up for you" and so on, "him you shall hear". Though I command "hear the small and the great alike", if the case of a prophet or a Torah scholar comes before you, hear it first.

Agra DeKala Hear the small and the great alike (Devarim / Deuteronomy 1:17)

We have a rule: wherever a doubled "as" (כְּ) stands like this, for example "as with the people, so with the priest" (Yeshayahu / Isaiah 24:2) and the like, the meaning is to make one equal to the other and the other to the one. And here one can say: sometimes a judge would rather hear a big case, because it is a big matter and a big loss, and not a small one. So the Torah warns that the small should be as important in his eyes as the big. And sometimes the reverse: he would rather hear a small case, which does not burden him, and fears a big case for the trouble. So it warns: "the small and the great alike", so it seems to me.

Takeaway

"A prophet from your midst, from your brothers, like me, the Eternal your Almighty will raise up for you, him you shall hear" (Devarim / Deuteronomy 18:15).
In the Hebrew of "the small and the great alike" the letter kaf (כְּ), "as", stands twice: "as the small, as the great" (כַּקָּטֹן כַּגָּדֹל).
The count of the scribes (מָסוֹרָה) is the notes of early text scholars on how often and how a word appears in Scripture.