كتاب العلم
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 2671 a

Anas b. Malik reported Allah's Messenger (ﷺ) as saying:

It is from the conditions of the Last Hour that knowledge would be taken away and ignorance would prevail (upon the world), the liquor would be drunk, and adultery would become rampant.
حَدَّثَنَا شَيْبَانُ بْنُ فَرُّوخَ، حَدَّثَنَا عَبْدُ الْوَارِثِ، حَدَّثَنَا أَبُو التَّيَّاحِ، حَدَّثَنِي أَنَسُ بْنُ، مَالِكٍ قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مِنْ أَشْرَاطِ السَّاعَةِ أَنْ يُرْفَعَ الْعِلْمُ وَيَثْبُتَ الْجَهْلُ وَيُشْرَبَ الْخَمْرُ وَيَظْهَرَ الزِّنَا ‏"‏ ‏.‏
Reference : Sahih Muslim 2671a
In-book reference : Book 47, Hadith 11
USC-MSA web (English) reference : Book 34, Hadith 6451
  (deprecated numbering scheme)