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.'"
English reference: Vol. 1, Book 1, Hadith 50
Arabic reference: Book 1, Hadith 52