Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:1370cʿUbaydullāh b. ʿUmar al-Qawārīrī And Muḥammad b. Abū Bakr al-Muqaddamī > ʿAbd al-Raḥman b. Mahdī > Sufyān

A hadith like this has been narrated with the same chain of transmitters by A'mash with a slight variation of words.  

مسلم:١٣٧٠cوَحَدَّثَنِي عُبَيْدُ اللَّهِ بْنُ عُمَرَ الْقَوَارِيرِيُّ وَمُحَمَّدُ بْنُ أَبِي بَكْرٍ الْمُقَدَّمِيُّ قَالاَ حَدَّثَنَا عَبْدُ الرَّحْمَنِ بْنُ مَهْدِيٍّ حَدَّثَنَا سُفْيَانُ

عَنِ الأَعْمَشِ بِهَذَا الإِسْنَادِ نَحْوَ حَدِيثِ ابْنِ مُسْهِرٍ وَوَكِيعٍ إِلاَّ قَوْلَهُ مَنْ تَوَلَّى غَيْرَ مَوَالِيهِ وَذِكْرَ اللَّعْنَةِ لَهُ