And all of this is regarding those who act inadvertently. But if they transgress willfully—and regarding this it is not relevant to inform them that it is forbidden, for they know it themselves but transgress it willfully—they said in the Gemara at the end of the sixth chapter of Yevamot (65b): Just as it is a mitzvah to say a matter that will be heard, so it is a mitzvah not to say a matter that will not be heard. And one said it is an obligation not to say it, as it is stated: "Do not rebuke a scorner, lest he hate you." And the Nimukei Yosef asked: But is there not the mitzvah of "you shall surely rebuke," the essence of which is for one who acts willfully? And he answered that certainly one time he is obligated to rebuke them, for perhaps they will listen. And even if it is clear to him that they will not listen, nevertheless, so that they should not have an opening of the mouth—he is obligated to rebuke them in public one time, and no more. And according to this, that which they said there that it is a "mitzvah" not to say it, or an "obligation"—this is regarding more than one time, and this is in public. But to an individual it is written "you shall surely rebuke" even a hundred times, and as I wrote above in siman 156: until he strikes him or curses him, according to the opinions we explained there. And for a transgression in private he should rebuke him in private, and for a transgression in public he should rebuke him immediately, so that the Name of Heaven should not be profaned (Magen Avraham subsection 3). And know that all of this is regarding a believing Israelite, only that his inclination overcame him to act, and regarding this rebuke is relevant. But those who treat the words of our sages, of blessed memory, with contempt—regarding these rebuke is not relevant, for they are heretics and apikorsim, and one should not debate with them. (And were it not for the words of the Nimukei Yosef and the Rema, I would have said that it is regarding these that we are dealing with in Yevamot there.)
וכל זה הוא בשוגגין. אבל אם עוברין במזיד – ובזה לא שייך להודיעם שאסור, שהרי יודעים בעצמם אלא שבמזיד עוברים על זה – אמרו בגמרא בסוף פרק שישי דיבמות (סה ב): כשם שמצוה לומר דבר הנשמע, כך מצוה שלא לומר דבר שלא נשמע. וחד אמר שחובה שלא לומר, שנאמר: "אל תוכח לץ, פן ישנאך". והקשה הנימוקי יוסף: הא יש מצות "הוכח תוכיח", דעיקרו הוא במזיד? ותירץ דוודאי פעם אחד חייב להוכיחן, ואולי ישמעו. ואף אם ברור לו שלא ישמעו, מכל מקום כדי שלא יהא להם פתחון פה – מחוייב להוכיחן ברבים פעם אחת, ולא יותר. ולפי זה מה שאמרו שם ד"מצוה" שלא לומר, או "חובה" – זהו על יותר מפעם אחת, וזהו ברבים. אבל ליחיד כתיב "הוכח תוכיח" אפילו מאה פעמים, וכמו שכתבתי לעיל סימן קנו: עד שיכנו או יקללנו, כפי הדיעות שבארנו שם. ובעבירה שבסתר יוכיחנו בסתר, ובעבירה שבגלוי יוכיחנו מיד, שלא יתחלל שם שמים (מגן אברהם סעיף קטן ג). ודע דכל זה הוא בישראל המאמין, אלא שיצרו תקפו לעשות, ובזה שייך תוכחה. אבל הפוקרים בדברי חכמינו ז"ל – באלו אין שייך תוכחה, שהרי הם מינים ואפיקורסים, ואין להתווכח עמהם. (ולולי דברי הנימוקי יוסף והרמ"א, הייתי אומר דבאלו מיירינן ביבמות שם.)