Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, Allah blocks the repentance of all who are committing heretical innovations.”
Source: al-Mu’jam al-Awsaṭ 4204
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِنَّ اللَّهَ حَجَبَ التَّوْبَةَ عَنْ صَاحِبِ كُلِّ بِدْعَةٍ
4202 المعجم الأوسط للطبراني
54 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الترغيب