Does Islam teach that people of every race and class are equal?

Why Islam? Evidence and truthQuran · 3Sources · 4

Short answer

Yes. The Quran addresses all of mankind, says people were made into nations and tribes so that they might know one another, and says that the noblest in the sight of Allah is the most righteous. The Prophet ﷺ said that Allah does not look at forms and wealth but at hearts and deeds. Muslims admit that some Muslims have fallen short of this.

The fuller answer

The Quran says: O mankind, We have created you from a male and a female and made you into nations and tribes so that you may know one another. Surely the noblest of you in the sight of Allah is the most righteous of you. It counts the difference of languages and colours among the signs of Allah, not as ranks, and it begins its address to mankind with a single origin. In Islam no race, tribe or class is born closer to Allah.

The Prophet ﷺ taught the same. He said that Allah does not look at your forms and your wealth but at your hearts and your deeds. When Abu Dharr, one of his companions, insulted a man by mentioning his mother, the Prophet ﷺ told him that he still had something of the ignorance of the old days in him, and reminded him that those under his authority were his brothers, to be fed and clothed as he was himself. In another report he told people to listen and obey the one put in charge of them, even if an Ethiopian was appointed over them. Bilal, a former slave of African origin, became the Prophet's caller to prayer, and the Prophet ﷺ said that he had heard his footsteps ahead of him in Paradise.

It is honest to add that Muslims have not always lived up to this. Racism, tribalism and caste thinking exist in some Muslim communities, and Islam's own teaching condemns them. The picture of equality is easiest to see in worship: in the prayer, rich and poor, black and white stand shoulder to shoulder, and at the pilgrimage people from every country wear simple clothing and stand together before Allah. Islam sets the standard, and Muslims are asked to measure themselves against it.

From the Quran

يَٰٓأَيُّهَا ٱلنَّاسُ إِنَّا خَلَقْنَٰكُم مِّن ذَكَرٍۢ وَأُنثَىٰ وَجَعَلْنَٰكُمْ شُعُوبًۭا وَقَبَآئِلَ لِتَعَارَفُوٓا۟ ۚ إِنَّ أَكْرَمَكُمْ عِندَ ٱللَّهِ أَتْقَىٰكُمْ ۚ إِنَّ ٱللَّهَ عَلِيمٌ خَبِيرٌۭ ﴿١٣﴾

O mankind! Lo! We have created you male and female, and have made you nations and tribes that ye may know one another. Lo! the noblest of you, in the sight of Allah, is the best in conduct. Lo! Allah is Knower, Aware.

وَمِنْ ءَايَٰتِهِۦ خَلْقُ ٱلسَّمَٰوَٰتِ وَٱلْأَرْضِ وَٱخْتِلَٰفُ أَلْسِنَتِكُمْ وَأَلْوَٰنِكُمْ ۚ إِنَّ فِى ذَٰلِكَ لَءَايَٰتٍۢ لِّلْعَٰلِمِينَ ﴿٢٢﴾

And of His signs is the creation of the heavens and the earth, and the difference of your languages and colours. Lo! herein indeed are portents for men of knowledge.

يَٰٓأَيُّهَا ٱلنَّاسُ ٱتَّقُوا۟ رَبَّكُمُ ٱلَّذِى خَلَقَكُم مِّن نَّفْسٍۢ وَٰحِدَةٍۢ وَخَلَقَ مِنْهَا زَوْجَهَا وَبَثَّ مِنْهُمَا رِجَالًۭا كَثِيرًۭا وَنِسَآءًۭ ۚ وَٱتَّقُوا۟ ٱللَّهَ ٱلَّذِى تَسَآءَلُونَ بِهِۦ وَٱلْأَرْحَامَ ۚ إِنَّ ٱللَّهَ كَانَ عَلَيْكُمْ رَقِيبًۭا ﴿١﴾

O mankind! Be careful of your duty to your Lord Who created you from a single soul and from it created its mate and from them twain hath spread abroad a multitude of men and women. Be careful of your duty toward Allah in Whom ye claim (your rights) of one another, and toward the wombs (that bare you). Lo! Allah hath been a watcher over you.

Sources