Part I; Likkutei Amarim, Chapter 32
The whole chapterדוּמַה שֶּׁכָּתוּב בַּגְּמָרָא, שֶׁמִּי שֶׁרוֹאֶה בַּחֲבֵירוֹ שֶׁחָטָא – מִצְוָה לִשְׂנֹאותוֹ, וְגַם לוֹמַר לְרַבּוֹ שֶׁיִּשְׂנָאֵהוּ. הַיְינוּ – בַּחֲבֵירוֹ בְּתוֹרָה וּמִצְוֹת, וּכְבָר קִיֵּים בּוֹ מִצְוַת ״הוֹכֵחַ תּוֹכִיחַ אֶת עֲמִיתֶךָ״ – עַם שֶׁאִתְּךָ בְּתוֹרָה וּבְמִצְוֹת, וְאַף־עַל־פִּי־כֵן לֹא שָׁב מֵחֶטְאוֹ, כְּמוֹ שֶׁכָּתוּב בְּסֵפֶר חֲרֵדִים.
4As for the Talmudic statement8 to the effect that one who sees his friend sinning should hate him and should tell his teacher to hate him also, this applies to a companion in Torah and precepts, having already applied to him the injunction, “You shall repeatedly rebuke your friend (amitecha),”9 meaning “He who is with you in Torah and precepts,”10 and who, nevertheless, has not repented of his sin, as stated in Sefer Charedim.11
Kehot Publication Society (English Translation)