The Messenger of Allah ﷺ said, "No soul dies bearing witness that there is no god but Allah and that I am the Messenger of Allah ﷺ, with that testimony coming from a heart of certainty, except that Allah forgives it."
حدثنا عبد الحميد بن بيان الواسطي حدثنا خالد بن عبد الله عن يونس عن حميد بن هلال عن هصان بن الكاهل عن عبد الرحمن بن سمرة
قال رسول الله ﷺ ما من نفس تموت تشهد أن لا إله إلا الله وأني رسول الله ﷺ يرجع ذلك إلى قلب موقن إلا غفر الله لها