It was narrated that 'Abdullah bin 'Abbas said:
"The Messenger of Allah (ﷺ) said: 'Allah refuses to accept the good deeds of one who follows innovation until he gives up that innovation.'" (AR)
English reference (AR): Vol. 1, Book 1, Hadith 50 (AR)
Arabic reference (AR): Book 1, Hadith 52 (AR)