Anas ibn Malik reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, Allah veils repentance from the practitioner of any heresy.”
Source: al-Mu’jam al-Awsaṭ lil-Ṭabarānī 4204
Grade: Sahih (authentic) according to Al-Albani
عَنْ أَنَسِ بْنِ مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِنَّ اللَّهَ حَجَبَ التَّوْبَةَ عَنْ صَاحِبِ كُلِّ بِدْعَةٍ
4/281 المعجم الأوسط للطبراني
54 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الترغيب