Proverbs 17:26
It is surely not good to punish the innocent or to flog a noble for his honesty.
Berean Standard Bible
Also to punish the just is not good, nor to strike princes for equity.
Also to punish the righteous is not good, nor to flog officials for their integrity.