Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:157fʿAbdullāh b. ʿAbd al-Raḥman al-Dārimī > Abū al-Yamān > Shuʿayb > al-Zuhrī > Ḥumayd b. ʿAbd al-Raḥman al-Zuhrī > Abū Hurayrah

This hadith has been transmitted on the authority of Abu Huraira with a slight variation of wording.  

مسلم:١٥٧fحَدَّثَنَا عَبْدُ اللَّهِ بْنُ عَبْدِ الرَّحْمَنِ الدَّارِمِيُّ أَخْبَرَنَا أَبُو الْيَمَانِ أَخْبَرَنَا شُعَيْبٌ عَنِ الزُّهْرِيِّ حَدَّثَنِي حُمَيْدُ بْنُ عَبْدِ الرَّحْمَنِ الزُّهْرِيُّ أَنَّ أَبَا هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ يَتَقَارَبُ الزَّمَانُ وَيُقْبَضُ الْعِلْمُ ثُمَّ ذَكَرَ مِثْلَهُ  


See similar narrations below:

Collected by Muslim
muslim:157gAbū Bakr b. Abū Shaybah > ʿAbd al-Aʿlá > Maʿmar > al-Zuhrī > Saʿīd > Abū Hurayrah

The time would draw close to the Last Hour and knowledge would decrease. The rest of the hadith is the same.  

مسلم:١٥٧gحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ حَدَّثَنَا عَبْدُ الأَعْلَى عَنْ مَعْمَرٍ عَنِ الزُّهْرِيِّ عَنْ سَعِيدٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ يَتَقَارَبُ الزَّمَانُ وَيَنْقُصُ الْعِلْمُ ثُمَّ ذَكَرَ مِثْلَ حَدِيثِهِمَا