Abu Jubayra bin Dahhak reported,

This verse was revealed about us, the company of the Ansar, "and do not insult one another with nicknames" [Hujurat 49:11]. The Prophet ﷺ came to us, and a man among us would have two or three names. The Prophet ﷺ would sometimes call them by one of those names, and someone would say, "Messenger of Allah, he becomes angry at this name." So the verse was revealed, "and do not insult one another with nicknames" [Hujurat 49:11].

Ibn Majah 3741

Sahih

حدثنا أبو بكر حدثنا عبد الله بن إدريس عن داود عن الشعبي

عن أبي جبيرة بن الضحاك قال

فينا نزلت معشر الأنصار ولا تنابزوا بالألقاب قدم علينا النبي ﷺ والرجل منا له الاسمان والثلاثة فكان النبي ﷺ ربما دعاهم ببعض تلك الأسماء فيقال يا رسول الله إنه يغضب من هذا فنزلت ولا تنابزوا بالألقاب

ابن ماجه 3741صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Manners
Chapter
Nicknames
Numbering
Darussalam 3741
Ibn Majah 3741