Proverbs 24:23-26

These things belong to the wise: It is not good to show partiality in judgment.
People will curse and nations will abhor him who says to the wicked “You are righteous.”

But it will be well with them that convict the guilty and a good blessing shall come to them. Every man shall kiss the lips of him that gives a right answer.