The Messenger of Allah ﷺ said, "There are six whom I have cursed and whom Allah and every prophet has cursed. The one who adds to the Book of Allah, the one who denies Allah's decree, the one who rules with tyrannical force in order to honor those whom Allah has humiliated and humiliate those whom Allah has honored, the one who treats as lawful what Allah has made sacred, the one who treats as lawful regarding my family what Allah has forbidden, and the one who abandons my Sunnah."
حدثنا قتيبة حدثنا عبد الرحمن بن زيد بن أبي الموالي المزني عن عبيد الله بن عبد الرحمن بن موهب عن عمرة
قال رسول الله ﷺ ستة لعنتهم ولعنهم الله وكل نبي كان الزائد في كتاب الله والمكذب بقدر الله والمتسلط بالجبروت ليعز بذلك من أذل الله ويذل من أعز الله والمستحل لحرم الله والمستحل من عترتي ما حرم الله والتارك لسنتي
No references are available.
Its isnad is hasan. Ibn Hibban also narrated it, h: 52, from the hadith of Qutayba bin Saeed with the same chain, and Dhahabi and Hakim, 1/36, graded it sahih, with some difference in the chain of transmission.