Sahih Muslim 1849 a
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
مَنْ رَأَى مِنْ أَمِيرِهِ شَيْئًا يَكْرَهُهُ فَلْيَصْبِرْ فَإِنَّهُ مَنْ فَارَقَ الْجَمَاعَةَ شِبْرًا فَمَاتَ فَمِيتَةٌ جَاهِلِيَّةٌ "
It has been narrated on the authority of Ibn 'Abbas that the messenger of Allah (ﷺ) said:
One who found in his Amir something which he disliked should hold his patience, for one who separated from the main body of the Muslims even to the extent of a handspan and then he died would die the death of one belonging to the days of Jahiliyya.
Full reference and source
Sahih Muslim 1849 a In-book : Book 33, Hadith 87 USC-MSA web (English) : Book 20, Hadith 4559 (deprecated)
View source on Sunnah.com (opens in a new tab)