The Ba'al HaTurim to Devarim 1:13 notes that the word ואשמם, "And I will place [the judges as your head]," is written without the י after the ש. (This is up to debate amongst the commentaries, and not for this discussion.) He writes that the lack of the י, whose value is 10, alludes to 10 commandments given over to judges. Although he does not list them, the Artscroll Ba'al HaTurim (Devarim, pg. 1813, note 41) quotes R' Chaim Kanievsky in his notes on Peirush HaRokeiach, who in turn quotes p. 140 of Otzar HaMidrashim, who in turn quotes Midrash Hashkeim.1 That Midrash claims there are ten positive mitzvos and ten negative mitzvos given to the judges:
- Don't show favoritism in judgement (Devarim 1:17)
- Don't tremble before any man (Ibid.)
- Don't pervert justice (Vayikra 19:15)
- Don't favor the impoverished (Ibid.)
- Don't honor the great (Ibid.)
- Don't pervert the judgement of the destitute (Shemos 23:6)
- Don't pervert the judgement of a convert or orphan (Devarim 24:17)
- Don't pervert judgement (Devarim 16:19)
- Don't show favoritism (Ibid.)
- Don't take bribes (Ibid.)
The Midrash concludes by saying that just as there are 10 commandments to judges, so, too, there are 10 Commandments Statements, which shows that Hashem values the judges as He does the Torah itself.
Why does this Midrash list these particular mitzvos? The Rambam, at the beginning of Hilchos Sanhedrin (Sefer Shoftim), lists 30 mitzvos related to the judges. Once you narrow the list to those directed at the judges themselves, you get the following list:
- To follow the majority
- Not to convict until you have a majority of at least two
- Once a judge votes to acquit, he may not change his vote to convict
- To kill certain individuals by stoning
- To kill certain individuals by burning
- To kill certain individuals by beheading
- To kill certain individuals by choking
- To hang bodies that were killed in court
- To bury those killed in court on the day they were killed
- Not to leave those who were hung2 for extended periods of time
- Not to let a witch live
- To give lashes to the wicked
- Not to give too many lashes
- Not to punish one who was forced
- Not to judge on assumptions
- Not to take pity on a murderer or damager
- Not to favor the poor
- Not to honor the great
- Not to tilt justice against known sinners
- Not to pervert justice
- Not to tilt the justice of an orphan or widow
- To judge righteously
- Not to be afraid of the litigants
- Not to accept bribes
So if there are 24 mitzvos directed at the judges, why does the Midrash list these ten in particular? Further, the Midrash starts off by saying that there are ten positive and ten negative mitzvos. If you want to say that over the years we lost some of the text and we lost the part that lists the ten positive mitzvos, fine. But the Rambam only lists nine positive mitzvos!
To sum up: How can the Midrash say that there are only ten negative mitzvos directed at judges, when there are much more? And how can the Midrash say that there are ten positive mitzvos directed at judges, when there are less?
(If someone can conjure up another Rishon's list of mitzvos that provides exactly 20 mitzvos, ten positive and ten negative, directed at judges, that would be an acceptable answer. We don't need to pasken a Midrash as Halacha, so there's no issue that the Rambam doesn't go like the Midrash; the question is which list the Midrash is using.)
1If somebody can find that original source, that would be great, but not necessarily necessary to properly answer this question.