Negative commandment · Lo Ta’aseh #315 of 613
Not to curse a judge
שלא לקלל הדיין
The verse · Shemot 22:27
אֱלֹהִים לֹא תְקַלֵּל וְנָשִׂיא בְעַמְּךָ לֹא תָאֹר
“Thou shalt not revile the judges, nor curse the ruler of thy people.”
The Rambam’s words
Not to curse a judge, as [Exodus 22:27] states: "Do not curse judges."
שלא לקלל הדיין, שנאמר "אלוהים, לא תקלל" (שמות כב,כז).
Why · Sefer HaChinuch #69
To not curse the judge
“It is from the roots of the commandment to remove fear of the accused and his curse from the judges, so that they will pronounce the true judgment.”
Who & when
“And [it] is practiced in every place and at all times by males and females.”
Where in the Mishneh Torah
Hilchot Foreign Worship and Customs of the Nations הלכות עבודה זרה וחוקות הגויים