Abu Huraira reported Messenger of Allah ﷺ having said: The time would draw close to the Last Hour and knowledge would decrease. The rest of the hadith is the same.
حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا عَبْدُ الأَعْلَى، عَنْ مَعْمَرٍ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدٍ،
عَنْ أَبِي هُرَيْرَةَ، عَنِ النَّبِيِّ ﷺ قَالَ
" يَتَقَارَبُ الزَّمَانُ وَيَنْقُصُ الْعِلْمُ "
. ثُمَّ ذَكَرَ مِثْلَ حَدِيثِهِمَا .