Sahih Muslim, Book 47, Hadith 20 (Muslim 6720)

Abu Huraira reported Allah's Messenger (ﷺ) having said:

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