كتاب العلم
47  
The Book of Knowledge
(5)
Chapter: The Taking Away Of Knowledge And The Spread Of Ignorance At The End Of Time
(5)
باب رَفْعِ الْعِلْمِ وَقَبْضِهِ وَظُهُورِ الْجَهْلِ وَالْفِتَنِ فِي آخِرِ الزَّمَانِ
Sahih Muslim 157 g

Abu Huraira reported Allah's Messenger (ﷺ) having said:

The time would draw close to the Last Hour and knowledge would decrease. The rest of the hadith is the same.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ الأَعْلَى، عَنْ مَعْمَرٍ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدٍ، عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ ‏ "‏ يَتَقَارَبُ الزَّمَانُ وَيَنْقُصُ الْعِلْمُ ‏"‏ ‏.‏ ثُمَّ ذَكَرَ مِثْلَ حَدِيثِهِمَا ‏.‏
Reference : Sahih Muslim 157g
In-book reference : Book 47, Hadith 20
USC-MSA web (English) reference : Book 34, Hadith 6460
  (deprecated numbering scheme)