Sayyiduna Abu Jabirah bin al-Dahhak (may Allah be pleased with him) said: This verse was revealed about us (Banu Salamah). The Messenger of Allah (peace and blessings be upon him) came to Madinah, and there was not a man among us but he had two or three names. When he (peace and blessings be upon him) called a man by one of those names, people would say: "O Messenger of Allah, he dislikes this name." So this verse was revealed: "And do not call one another by offensive nicknames" [Surah al-Hujurat: 11].
Hadith Referenceالمعجم الكبير للطبراني / مسند من يعرف بالكنى / 19171