Solomon
Proverbs 17:26ESV·traditional attribution

To impose a fine on a righteous man is not good, nor to strike the noble for their uprightness.

Matthew Henry Presbyterian @wholebiblehenry

In differences that happen between magistrates and subjects, and such differences often arise, 1. Let magistrates see to it that they never punish the just, that they be in no case a terror to good works, for that is to abuse their power and betray that great trust which is reposed in them.

John Gill Reformed Baptist @doctorgill

Also to punish the just is not good,.... It is evil, and an abomination to the Lord, Pro 17:15. Evildoers indeed should be punished; but to punish the righteous also, as well as them, is far from being commendable; nor to strike princes for equity: to strike princes, judges, civil magistrates, for doing the duty of their place and office, for doing that which is...

Jamieson-Fausset-Brown Reformed @jfbcommentary

Also--that is, Equally to be avoided are other sins: punishing good subjects, or resisting good rulers.