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:2263cAbū al-Rabīʿ > Ḥammād / Ibn Zayd > Ayyūb And Hishām > Muḥammad > Abū Hurayrah

"When the time draws near," the rest of the hadith is the same.  

مسلم:٢٢٦٣cحَدَّثَنِي أَبُو الرَّبِيعِ حَدَّثَنَا حَمَّادٌ يَعْنِي ابْنَ زَيْدٍ حَدَّثَنَا أَيُّوبُ وَهِشَامٌ عَنْ مُحَمَّدٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

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