Surah 5 verse 8 of the Quran:
“O you who believe! stand out firmly for Allah, as witnesses to fair dealing, and let not the hatred of others make you swerve to wrong and depart from justice. Be just: that is next to piety: and fear Allah. For Allah is well-acquainted with all that you do”
Hatred of others, if any, should not make Muslims swerve to wrong doing and be unjust to them.