Hadithcore
Sunan Abi Dawud, 4962
sahih· Al-Albani

Narrated AbuJubayrah ibn ad-Dahhak:

This verse was revealed about us, the Banu Salimah: "Nor call each other by (offensive) nicknames: ill-seeming is a name connoting wickedness (to be used of one) after he has believed." He said: When the apostle of Allah (ﷺ) came to us, every one of us had two or three names. The Messenger of Allah (ﷺ) began to say: O so and so! But they would say: Keep silence, Messenger of Allah! He becomes angry by this name. So this verse was revealed: "Nor call each other by (offensive) nicknames."

حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ، حَدَّثَنَا وُهَيْبٌ، عَنْ دَاوُدَ، عَنْ عَامِرٍ، قَالَ حَدَّثَنِي أَبُو جُبَيْرَةَ بْنُ الضَّحَّاكِ، قَالَ فِينَا نَزَلَتْ هَذِهِ الآيَةُ فِي بَنِي سَلِمَةَ ‏{‏ وَلاَ تَنَابَزُوا بِالأَلْقَابِ بِئْسَ الاِسْمُ الْفُسُوقُ بَعْدَ الإِيمَانِ ‏}‏ قَالَ قَدِمَ عَلَيْنَا رَسُولُ اللَّهِ صلى الله عليه وسلم وَلَيْسَ مِنَّا رَجُلٌ إِلاَّ وَلَهُ اسْمَانِ أَوْ ثَلاَثَةٌ فَجَعَلَ النَّبِيُّ صلى الله عليه وسلم يَقُولُ ‏

‏ يَا فُلاَنُ ‏

‏ ‏.‏ فَيَقُولُونَ مَهْ يَا رَسُولَ اللَّهِ إِنَّهُ يَغْضَبُ مِنْ هَذَا الاِسْمِ فَأُنْزِلَتْ هَذِهِ الآيَةُ ‏{‏ وَلاَ تَنَابَزُوا بِالأَلْقَابِ ‏}‏ ‏.‏

References2 variants
In-Book Reference
Book 43, Hadith 190
English Reference
Book 42, Hadith 4944