ספר המדות, A Righteous Person / Part I A Righteous Person / Part I · רא
Sefer HaMiddot 2212
רא. לִפְעָמִים הַמַּחֲלֹקֶת עַל הַצַּדִּיק הִיא הוֹכָחָה גְּדוֹלָה שֶׁהוּא צַדִּיק.
201. Sometimes the controversy surrounding a tzaddik is a great proof that he is a tzaddik (t.n. The commentaries do not provide any citation here, so I suggest a possible hint from the Medrash Rabba, Beraishes 43:3 which brings a verse speaking of Father Abraham being attacked and proceeds to bring another verse which asks who instigated these attackers, and the answer is are the words which can have the meaning -- they bring the tidings of his righteousness).