كتاب الإيمان
1  
The Book of Faith
(40)
Chapter: The evidence that the one who dies not associating anything with Allah will enter paradise, and the one who dies as idolator will enter the fire
(40)
باب مَنْ مَاتَ لاَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ الْجَنَّةَ وَمَنْ مَاتَ مُشْرِكًا دَخَلَ النَّارَ ‏‏
Sahih Muslim 92

It is narrated on the authority of Abdullah b. Mas'ud that Waki told (him) that the Messenger of Allah had observed and Ibn Numair asserted:

I heard the Messenger of Allah (ﷺ) saying: He who dies associating anything with Allah would enter the Fire (of Hell). 'Abdullah b. Mas'ud said: I say that he who died without associating anything with Allah entered Paradise.
حَدَّثَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ نُمَيْرٍ، حَدَّثَنَا أَبِي وَوَكِيعٌ، عَنِ الأَعْمَشِ، عَنْ شَقِيقٍ، عَنْ عَبْدِ اللَّهِ، قَالَ وَكِيعٌ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم وَقَالَ ابْنُ نُمَيْرٍ سَمِعْتُ رَسُولَ اللَّهِ صلى الله عليه وسلم يَقُولُ ‏ "‏ مَنْ مَاتَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ النَّارَ ‏"‏ ‏.‏ وَقُلْتُ أَنَا وَمَنْ مَاتَ لاَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ الْجَنَّةَ ‏.‏
Reference : Sahih Muslim 92
In-book reference : Book 1, Hadith 174
USC-MSA web (English) reference : Book 1, Hadith 167
  (deprecated numbering scheme)