מַצְדִּ֣יק רָ֭שָׁע וּמַרְשִׁ֣יעַ צַדִּ֑יק תּוֹעֲבַ֥ת יְ֝הוָ֗ה גַּם־שְׁנֵיהֶֽם׃
He that justifieth the wicked, and he that condemneth the righteous, Even they both are an abomination to the LORD.
Read Jewish philosophical commentary on Proverbs 17:15: and classical philosophical sources.