Dalil

Quran An-Nisa 4:148

لَّا يُحِبُّ ٱللَّهُ ٱلۡجَهۡرَ بِٱلسُّوٓءِ مِنَ ٱلۡقَوۡلِ إِلَّا مَن ظُلِمَۚ وَكَانَ ٱللَّهُ سَمِيعًا عَلِيمًا

Translation

Allāh does not like the public mention of evil except by one who has been wronged. And ever is Allāh Hearing and Knowing.