Hadith 22

Sahih Bukhari

Book 3: Knowledge

Chapter 21

(What is said regarding) the disappearance of the (religious) knowledge and the appearance of (religious) ignorance

باب رَفْعِ الْعِلْمِ وَظُهُورِ الْجَهْلِ

And Rabi‘a said, “It is not wise for a person who has been gifted with a part of the (religious) knowledge to ruin himself (by abstaining from teaching it to others).” ​​
وَقَالَ رَبِيعَةُ لاَ يَنْبَغِي لأَحَدٍ عِنْدَهُ شَيْءٌ مِنَ الْعِلْمِ أَنْ يُضَيِّعَ نَفْسَهُ.
Sahih al-Bukhari 80
حَدَّثَنَا عِمْرَانُ بْنُ مَيْسَرَةَ، قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ، عَنْ أَبِي التَّيَّاحِ، عَنْ أَنَسٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ ‏‏.‏
"‏ إِنَّ مِنْ أَشْرَاطِ السَّاعَةِ أَنْ يُرْفَعَ الْعِلْمُ، وَيَثْبُتَ الْجَهْلُ، وَيُشْرَبَ الْخَمْرُ، وَيَظْهَرَ الزِّنَا ‏"
Anas:

Allah's Messenger (ﷺ) said, "From among the portents of the Hour are (the following): -1. Religious knowledge will be taken away (by the death of Religious learned men). -2. (Religious) ignorance will prevail. -3. Drinking of Alcoholic drinks (will be very common). -4. There will be prevalence of open illegal sexual intercourse.