Sayyiduna Ma'qil bin Yasar (may Allah be pleased with him) said that the Messenger of Allah (peace and blessings be upon him) said: "Two men from my Ummah will not attain my intercession: an oppressive, tyrannical ruler, and another who goes to extremes in the religion and passes out of it."
Hadith Referenceالمعجم الكبير للطبراني / باب الميم / 17630