كتاب الإيمان
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)
باب مَنْ مَاتَ لاَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ الْجَنَّةَ وَمَنْ مَاتَ مُشْرِكًا دَخَلَ النَّارَ ‏‏

It is narrated on the authority of Jabir that a man came to the Messenger of Allah (ﷺ) and said:

Messenger of Allah, what are the two things quite unavoidable? He replied: He who dies without associating anyone with Allah would (necessarily) enter Paradise and he who dies associating anything with Allah would enter the (Fire of) Hell.
وَحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَأَبُو كُرَيْبٍ قَالاَ حَدَّثَنَا أَبُو مُعَاوِيَةَ، عَنِ الأَعْمَشِ، عَنْ أَبِي سُفْيَانَ، عَنْ جَابِرٍ، قَالَ أَتَى النَّبِيَّ صلى الله عليه وسلم رَجُلٌ فَقَالَ يَا رَسُولَ اللَّهِ مَا الْمُوجِبَتَانِ فَقَالَ ‏ "‏ مَنْ مَاتَ لاَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ الْجَنَّةَ وَمَنْ مَاتَ يُشْرِكُ بِاللَّهِ شَيْئًا دَخَلَ النَّارَ ‏"‏ ‏.‏
Reference : Sahih Muslim 93 a
In-book reference : Book 1, Hadith 175
USC-MSA web (English) reference : Book 1, Hadith 168
  (deprecated numbering scheme)