Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:82a

"The Messenger of Allah ﷺ said: 'Allah refuses to accept the good deeds of one who follows innovation until he gives up that innovation.'" (Using translation from Ibn Mājah 50)   

السيوطي:٨٢a

" أبي اللهُ أن يقبلَ عَمَلَ صاحِبِ بدعةٍ حتَّى يَدَعَ بِدْعَتَهُ".  

[هـ] ابن ماجة وابن أبي عاصم في السنة، وأبو نصر السجزى في الإنابة، وابن النجار عن ابن عباس"

See similar narrations below:

Collected by Ibn Mājah
ibnmajah:50ʿAbdullāh b. Saʿīd > Bishr b. Manṣūr al-Khayyāṭ > Abū Zayd > Abū al-Mughīrah > ʿAbdullāh b. ʿAbbās

"The Messenger of Allah ﷺ said: 'Allah refuses to accept the good deeds of one who follows innovation until he gives up that innovation.'"  

ابن ماجة:٥٠حَدَّثَنَا عَبْدُ اللَّهِ بْنُ سَعِيدٍ حَدَّثَنَا بِشْرُ بْنُ مَنْصُورٍ الْخَيَّاطُ عَنْ أَبِي زَيْدٍ عَنْ أَبِي الْمُغِيرَةِ عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ أَبَى اللَّهُ أَنْ يَقْبَلَ عَمَلَ صَاحِبِ بِدْعَةٍ حَتَّى يَدَعَ بِدْعَتَهُ