It is narrated from Sayyiduna Ma'qil bin Yasar (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "There are two groups of my Ummah who will not attain my intercession: a ruler who is harsh towards his subjects, extremely unjust and oppressive, and another who goes to extremes (excess) in the religion and passes out of it." Imam Abu Ya'la has also recorded this narration with another chain, in which all the words of the hadith are the same, except that the word 'asuf (unfair/harsh) is not mentioned in it.
Hadith Gradingمحدثین:سكت عنه البوصيري، إسناده ضعيف؛ لجهالة منيع
Hadith Takhrij«قال محقق المطالب العالية: الحديث رجاله ثقات غير منيع فإنه مجهول، أورده ابن أبي حاتم ولم يذكر فيه جرحًا ولا تعديلًا» «أخرجه مجمع الزوائد ومنبع الفوائد برقم: 9195، 9196»