The Book on Government (Kitab Al-Imara)

Muslim :: Book 20 : Hadith 4500

It 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 (may peace be upon him). If I knew that I am to survive this illness. I would, not narrate it to you. I heard the Messenger of Allah (may peace be upon him) 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 Paradige.

Source materials are from the University of Southern California MSA site
Hadith eBooks converted from Imaan Star