Reference: Sharhus-Sunnah – Imaam al-Barbahaaree
Imaam al-Barbahaaree (rahima-hullaah) mentions:
From the Sunnah is that you do not help anyone in disobedience to Allaah, whether they be parents or any of the creation. There is no obedience to a human in disobedience to Allaah and no one is to be loved for that (i.e. disobedience to Allaah).
Rather, all of that is to be hated for [the sake of] Allaah, the Blessed and Most High.