Prophet Muhammad (prayers and peace be upon him and his family) was extremely clear on Islam’s position against racism and tribalism. The more that I study his life, the more examples that I see of when he swiftly corrected his companions and contemporaries when they committed actions and/or speech with racist implications.
عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ ، قَالَ : كَانَ لِرَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَ آلِهِ وَ سَلَّمَ مَوْلَيَانِ حَبَشِيٌّ وَقِبْطِيٌّ ، فَاسْتَبَّا يَوْمًا ، فَقَالَ أَحَدُهُمَا : يَا حَبَشِيُّ ، وَ قَالَ الآخَرُ : يَا قِبْطِيُّ ، فَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَ آلِهِ وَ سَلَّمَ : ” لا تَقُولُوا هَكَذَا ، إِنَّمَا أَنْتُمَا رَجُلانِ مِنْ آلِ مُحَمَّدٍ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ
One such story above narrated in a hadeeth hasan in Mu’jam As-Sagheer by At-Tabarani states that a man called two (ex)slaves who were Ethiopian and Coptic saying, “Oh Ethiopian…Oh Coptic.” Prophet Muhammad replied, “Do not say so.” Then he spoke to the Ethiopian and Coptic men saying, “You two men are but from the People of Muhammad!”
How beautiful that he who was from the most respected tribe of the Arabs and was the political leader in Al-Madinah made such a statement on behalf of two non-Arab men, who were (ex)slaves.