Exodus 23:2

23:2 “You must not follow a crowd in doing evil things; in a lawsuit you must not offer testimony that agrees with a crowd so as to pervert justice,

Proverbs 17:15

17:15 The one who acquits the guilty and the one who condemns the innocent

both of them are an abomination to the Lord.