Sahih Muslim 4729
صحيح مسلم#4729SahihIt has been narrated on the authority of Hasan who said:Ubaidullah b Ziyad visited Ma'qil b. Yasir al-Muzani in his last iliness. Ma'qil said (to him): I am narrating to you a tradition I heard from the Messenger of Allah (ﷺ). If I knew that I am to survive this illness. I would, not narrate it to you. I heard the Messenger of Allah (ﷺ) say: If God appointed anyone ruler over a people and he died while he was still treacherous to his people, God would forbid his entry into Paradise
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih Muslim is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 33:28