Le Deutéronome 1:16 Midrash : Ein Yaakov (Glick Edition), Devarim Rabbah, Midrash Tanchuma & Sifrei Devarim

וָאֲצַוֶּה֙ אֶת־שֹׁ֣פְטֵיכֶ֔ם בָּעֵ֥ת הַהִ֖וא לֵאמֹ֑ר שָׁמֹ֤עַ בֵּין־אֲחֵיכֶם֙ וּשְׁפַטְתֶּ֣ם צֶ֔דֶק בֵּֽין־אִ֥ישׁ וּבֵין־אָחִ֖יו וּבֵ֥ין גֵּרֽוֹ׃

Je donnai alors à vos juges les instructions suivantes: "Ecoutez également tous vos frères et prononcez équitablement, entre chacun et son frère, entre chacun et l’étranger.

Ein Yaakov (Glick Edition)

(Deut. 1, 16) And I commanded your judges at that time. R. Jochanan said: "This is a warning to the judges that they should be careful with the cane and straps." Hear the causes between your brethren and judge righteously. R. Chanina said: "This is a warning to the court that it shall not listen to the claims of one person in the absence of his opponent, for although we read [in the text] Sh'ma (hear), it is nevertheless spelled Shima (be heard) ." R. Cahana said we infer this from (Ex. 23, 1) Thou shalt not receive (Thissa) a false report; read it Thassi — (cause to receive). You shall judge righteously. Resh Lakish said: "This means, you shall deliberate over the case carefully, and make it just in your mind, and only then may you give your decision." Between a man and his brother, and his stranger. R. Juda said: . "Even between a house and its attic." [The judge must not say what is the difference, if one takes without appraising the house and one the attic]? And his stranger — R. Juda says: "This means that between a stove and an oven [the Judge shall not say, What is the difference, if I give him an oven or a stove]? Ye shall not recognize (favor) persons in judgment. R. Juda says: "This means you shall not favor him, even if he is your friend." According to R. Elazar, it means: "You shall not discriminate against him, [if he is your enemy]."

Devarim Rabbah

Another interpretation, “judges and officers” – Rav Aḥa said: Come and see that Solomon’s throne had six stairs. From where is this derived? It is as it is stated: “There were six stairs to the throne” (I Kings 10:19). And in this passage, six matters are written as negative commandments, and they are: “You shall not distort judgment, you shall not give preference, and you shall not take a bribe” (Deuteronomy 16:19); “You shall not plant for you any kind of sacred tree” (Deuteronomy 16:21); “You shall not establish a monument for you” (Deuteronomy 16:22); “You shall not slaughter to the Lord your God an ox, or a lamb, [in which there is a blemish]” (Deuteronomy 17:1). There you have six. The herald would stand before Solomon’s throne, and when he [Solomon] would ascend the first stair, he would proclaim: “You shall not distort judgment”; for the second stair he would proclaim: “You shall not show preference”; for the third, he would proclaim: “And you shall not take a bribe”; for the fourth: “You shall not plant for you any kind of sacred tree”; for the fifth: “You shall not establish a monument for you”; for the sixth: “You shall not slaughter to the Lord your God […in which there is a blemish].”
Rabbi Ḥiyya bar Abba said: The protocol for a trial is as follows: The plaintiff states his claim, the defendant responds, and the judge renders a decision. Rabbi Sima said: The judge must orally review their claims. From whom can you learn this? From Solomon, as it is stated: “The king said: This one says: This is my living son, and your son is the dead one; and that one says: No, rather, your son is the dead one, and my son is the live one” (I Kings 3:23).
Rabbi Yehuda ben Rabbi Ilai said: I heard that if a judge wishes to seat the litigants, he may seat them. What is it that is prohibited? There may not be one [litigant] sitting and the other one standing, as Rabbi Yishmael said: If there was a judge and two people came to him for judgment, one wealthy and one impoverished, he should say [to the wealthy one]: ‘Dress as he is dressed, or dress him as you are dressed.’
“You shall not show preference” (Deuteronomy 1:17) – Rabbi Elazar and Rabbi Shmuel bar Naḥman, Rabbi Elazar said: If you [the judge], realize that justice is in his favor [one of the litigants], do not show him a favorable countenance, so he [the other litigant] should not say: ‘From the outset he sought to rule in his favor.’ Rabbi Shmuel bar Naḥman said: If you [the judge] know that justice is not in his favor, show him a favorable countenance, so he should not say: ‘From the outset he sought to convict me.’ Rabbi Ḥanina said: One verse says: “You shall judge fairly” (Deuteronomy 1:16),13This verse does not mention extensive investigation of the claims. and another verse says: “You shall inquire, interrogate, and ask diligently” (Deuteronomy 13:15). How can this be [resolved]? If you sense that the case [presented by one of the litigants] is fraudulent, interrogate him, but if you sense that the case is being resolved truthfully, judge him fairly.14Without interrogation.

Midrash Tanchuma

R. Hiyya the son of Abba concluded from the verse Say unto wisdom: “Thou art my sister” (Prov. 7:4) that if the verdict is as clear to you as the fact that your sister is forbidden to you, announce it; but if it is not, do not announce it. R. Joshua the son of Levi said: If ten men sit in judgment, responsibility for the verdict rests upon the neck of each of them. And judge righteously (Deut. 1:16). R. Joshua the son of Levi interprets this verse to mean: One must confirm the justice of the decision before announcing it.