It is not good to be partial to the wicked or to deprive the righteous of justice.
Proverbs 18:5 ESV

Don't call evil good and good evil. If you know that one person is usually wise and another person usually foolish, don't be quick to agree with the fool even if he seems obviously right at first.