Allah the Exalted said:
٢٧٣ - باب تحريم احتقار المسلمين
Allah the Exalted said:
O you who have believed, let not a people ridicule [another] people; perhaps they may be better than them; nor let women ridicule [other] women; perhaps they may be better than them. And do not insult one another and do not call each other by [offensive] nicknames. Wretched is the name [i.e., mention] of disobedience after [one's] faith. And whoever does not repent - then it is those who are the wrongdoers.
And the Exalted said:
Woe to every scorner and mocker
Abū Hurayra (may Allah be pleased with him) reported that the Messenger of Allah ﷺ said: "It is enough evil for a man that he should despise his Muslim brother." Narrated by Muslim, and it has already been given in full a short way back.
Ibn Masʿūd (may Allah be pleased with him) reported from the Prophet ﷺ that he said: "No one will enter Paradise who has in his heart the weight of an atom of arrogance." A man said: A man likes his garment to be fine and his sandals to be fine. He said: "Indeed Allah is beautiful and loves beauty. Arrogance is rejecting the truth and despising people." Narrated by Muslim. The meaning of "rejecting the truth" is repelling it, and "despising them" is holding them in contempt; its explanation has already come, clearer than this, in the chapter on arrogance.
Jundub ibn ʿAbd Allāh (may Allah be pleased with him) said: The Messenger of Allah ﷺ said: "A man said: By Allah, Allah will not forgive so-and-so. So Allah, Mighty and Majestic, said: Who is this who swears by Me that I will not forgive so-and-so? I have indeed forgiven him and nullified your deeds." Narrated by Muslim.