Mishkat al-Masabih 38
وَعَنْ جَابِرٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: ثِنْتَانِ مُوجِبَتَانِ. قَالَ رَجُلٌ: يَا رَسُولَ اللَّهِ مَا الْمُوجِبَتَانِ؟ قَالَ: (مَنْ مَاتَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ النَّارَ وَمَنْ مَاتَ لَا يُشْرِكُ بِاللَّهِ شَيْئا دخل الْجنَّة) (رَوَاهُ مُسلم)
From Jabir, may Allah be pleased with him, who said: The Messenger of Allah ﷺ said: "Two things make [the outcome] certain." A man said: "O Messenger of Allah, what are the two that make it certain?" He said: "Whoever dies associating anything with Allah enters the Fire, and whoever dies not associating anything with Allah enters Paradise." Reported by Muslim.