Parshas Kedoshim · Passuk 19:17
Chabad.org — English translation + Rashi
Torah Temimah on Vayikra 19:17 · Pesachim 113b / TT
You shall not hate your brother — But if one sees in him a matter of immorality, it is permitted to hate him; and Rav Nachman bar Yitzchak said: it is a mitzvah to hate him, as it is said: Fear of Hashem is hatred of evil.
Classical derasha (TT)
After rebuke is refused and the person persists in wickedness, hatred of the evil is warranted; rescue duties still apply.