عَنْ أَبِي جَبِيرَةَ ابْنِ الضَّحَّاكِ الْأَنْصَارِيِّ رَضِيَ اللَّهُ عَنْهُ عَنْ عُمُومَةٍ لَهُ قَدِمَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ وَلَيْسَ أَحَدٌ مِنَّا إِلَّا لَهُ لَقَبٌ أَوْ لَقَبَانِ قَالَ فَكَانَ إِذَا دَعَا رَجُلًا بِلَقَبِهِ قُلْنَا يَا رَسُولَ اللَّهِ إِنَّ هَذَا يَكْرَهُ هَذَا قَالَ فَنَزَلَتْ {وَلَا تَنَابَزُوا بِالْأَلْقَابِ} [الحجرات: 11]
Abu Jubairah bin Dhahhak Ansari narrates from his uncles that when the Noble Prophet (peace and blessings be upon him) arrived in Madinah Munawwarah, each of us had one or two nicknames. So when the Prophet (peace and blessings be upon him) would call someone by his nickname, we would say: O Messenger of Allah! That person dislikes this nickname. Then at that time this verse was revealed: {وَلا تَنَابَزُوا بِالألْقَابِ} … and do not call one another by offensive nicknames (Surah Al-Hujurat: 11).