You shall not spread a false report. You shall not join hands with the wicked to act as a malicious witness.
You shall not follow a majority in wrongdoing; when you bear witness in a lawsuit, you shall not side with the majority so as to pervert justice;
nor shall you be partial to the poor in a lawsuit.
When you come upon your enemy's ox or donkey going astray, you shall bring it back
When you see the donkey of one who hates you lying under its burden and you would hold back from setting it free, you must help to set it free.
References for Exodus 23:5
You shall not pervert the justice due to your poor in their lawsuits.