Mu’adh ibn Jabal reported: The Messenger of Allah, peace and blessings be upon him, said, “No soul upon the earth dies while not associating partners with Allah and testifying that I am the Messenger of Allah, repeating it in his heart with conviction, but that he will be forgiven.”
Source: Ṣaḥīḥ Ibn Ḥibbān 203
Grade: Hasan (fair) according to Al-Albani
عَنْ مُعَاذِ بْنِ جَبَلٍ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ مَا عَلَى الْأَرْضِ نَفْسٌ تَمُوتُ لَا تُشْرِكُ بِاللَّهِ شَيْئًا وَتَشْهَدُ أَنِّي رَسُولُ اللَّهِ يَرْجِعُ ذَلِكَ إِلَى قَلْبٍ مُوقِنٍ إِلَّا غُفِرَ لَهَا
203 صحيح ابن حبان باب فرض الإيمان ذكر البيان بأن الجنة إنما تجب لمن شهد لله بالوحدانية
5 المحدث الألباني خلاصة حكم المحدث حسن في صحيح الموارد