Sahih Muslim 60 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
أَيُّمَا امْرِئٍ قَالَ لأَخِيهِ يَا كَافِرُ . فَقَدْ بَاءَ بِهَا أَحَدُهُمَا إِنْ كَانَ كَمَا قَالَ وَإِلاَّ رَجَعَتْ عَلَيْهِ "
It is reported on the authority of Ibn 'Umar that the Messenger of Allah (ﷺ) said:
Any person who called his brother: "O unbeliever" (has in fact done an act by which this unbelief) would return to one of them. If it were so, as he asserted (then the unbelief of man was confirmed but if it was not true), then it returned to him (to the man who labeled it on his brother Muslim).
Full reference and source
Sahih Muslim 60 b In-book : Book 1, Hadith 122 USC-MSA web (English) : Book 1, Hadith 117 (deprecated)
View source on Sunnah.com (opens in a new tab)