Hadithcore
Al-Adab Al-Mufrad, 432
sahih· Al-Albani

Abu Dharr is reported as saying that he heard the Prophet, (ﷺ), say, "If a man accuses another man of deviance or accuses him of disbelief, that accusation will come back on him if his companion is not as he said."

حَدَّثَنَا أَبُو مَعْمَرٍ، قَالَ‏:‏ حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنِ الْحُسَيْنِ، عَنْ عَبْدِ اللهِ بْنِ بُرَيْدَةَ، قَالَ‏:‏ حَدَّثَنَا يَحْيَى بْنُ يَعْمَُرَ، أَنَّ أَبَا الأَسْوَدِ الدِّيلِيَّ حَدَّثَهُ، أَنَّهُ سَمِعَ أَبَا ذَرٍّ قَالَ‏:‏ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ‏:‏ لاَ يَرْمِي رَجُلٌ رَجُلاً بِالْفُسُوقِ، وَلاَ يَرْمِيهِ بِالْكُفْرِ، إِلاَّ ارْتَدَّتْ عَلَيْهِ، إِنْ لَمْ يَكُنْ صَاحِبُهُ كَذَلِكَ‏.‏

References2 variants
In-Book Reference
Book 24, Hadith 14
English Reference
Book 24, Hadith 432