(71) باب فِي الأَلْقَابِ
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."
Reference: Sunan Abi Dawud 4962
In-book reference: Book 43, Hadith 190
English translation: Book 42, Hadith 4944