Sahih al Bukhari 6104
Good Manners and Form (Al-Adab)
حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم قَالَ " أَيُّمَا رَجُلٍ قَالَ لأَخِيهِ يَا كَافِرُ. فَقَدْ بَاءَ بِهَا أَحَدُهُمَا ".
Narrated 'Abdullah bin 'Umar: Allah's Messenger (ﷺ) said, 'If anyone says to his brother, 'O misbeliever! Then surely, one of them such
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.