Shemot23:7

מִדְּבַר־שֶׁקֶר תִּרְחָק וְנָקִי וְצַדִּיק אַל־תַּהֲרֹג כִּי לֹא־אַצְדִּיק רָשָׁע׃

Keep far from a false matter. Do not kill the innocent and the righteous, for I will not acquit the wicked.

Shemot 23:7

מִדְּבַר־שֶׁקֶר תִּרְחָק וְנָקִי

Shemot / Exodus 23:7 · Pshat

Shemot 23:7

מִדְּבַר־שֶׁקֶר תִּרְחָק וְנָקִי וְצַדִּיק אַל־תַּהֲרֹג כִּי לֹא־אַצְדִּיק רָשָׁע׃

Keep far from a false matter. Do not kill the innocent and the righteous, for I will not acquit the wicked.

Pshat פְּשָׁט

A verdict not reopened

The verse stands among the laws of the court. What falsehood does it speak of, and why does the Creator add: "I will not acquit the wicked"?

Rashi reads the verse as a law of the court: if an argument for acquittal is found for a condemned man, he is brought back to court. But one acquitted is not brought back, even if an argument against him is found. And if the court erred, "I will not acquit the wicked": the Creator has many messengers. Ibn Ezra: "keep far from falsehood" is said first of all to the judge.

How Rashi and Ibn Ezra explain it

Rashi Do not kill the innocent and the righteous

How do we know that if the accused leaves the court condemned, and someone said: "I can bring an argument for his acquittal", he is brought back to court? The Torah says: "do not kill the innocent". He is not "righteous", since the court did not acquit him, but he is still "innocent" in a capital case, since you have something to acquit him with.

And how do we know that if he leaves the court acquitted, and someone said: "I can bring an argument against him", he is not brought back to court to be condemned? The Torah says: "and do not kill the righteous". And he is "righteous", since the court acquitted him.

Rashi For I will not acquit the wicked

You need not bring him back to court, for I will not acquit him in My judgement. If he left your hands acquitted, I have many messengers to put him to the death he deserved.

Ibn Ezra From a false matter

This is said to the judge: that he not give a false verdict. So too it says: "Justice, justice shall you pursue" (Devarim / Deuteronomy 16:20).

Takeaway

In capital cases a court may reopen a verdict only in favour of the accused. An acquittal is final (Mishnah Sanhedrin 4:1).
Rashi distinguishes the "innocent" (נָקִי) and the "righteous" (צַדִּיק): the righteous is one the court acquitted, the innocent one who can still be acquitted.
If the earthly court erred and released the guilty, the court of Heaven does not err: so Rashi reads "I will not acquit the wicked".