Sahih Muslim 1849 b
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 (through a different chain of transmitters) on the authority of Ibn Abbas that the Messenger of Allah (ﷺ) said:
One who dislikes a thing done by his Amir should be patient over it, for anyone from the people who withdraws (his obedience) from the government, even to the extent of a handspan and died in that conditions, would die the death of one belonging to the days of jahilliyya.
Full reference and source
Sahih Muslim 1849 b In-book : Book 33, Hadith 88 USC-MSA web (English) : Book 20, Hadith 4560 (deprecated)
View source on Sunnah.com (opens in a new tab)