Sunan al-Darimi 350
أَخْبَرَنَا الْحَكَمُ بْنُ الْمُبَارَكِ، أَنبَأَنَا الْوَلِيدُ بْنُ مُسْلِمٍ، أَنبَأَنَا الْوَلِيدُ بْنُ سُلَيْمَانَ، عَنْ عَلِيِّ بْنِ يَزِيدَ، عَنِ الْقَاسِمِ أَبِي عَبْدِ الرَّحْمَنِ، عَنْ أَبِي أُمَامَةَ ﵁، عَنِ النَّبِيِّ ﷺ قَالَ: «سَتَكُونُ فِتَنٌ يُصْبِحُ الرَّجُلُ فِيهَا مُؤْمِنًا، وَيُمْسِي كَافِرًا، إِلَّا مَنْ أَحْيَاهُ اللَّهُ بِالْعِلْمِ»
Al-Hakam ibn al-Mubarak informed us; he said: Al-Walid ibn Muslim informed us; he said: Al-Walid ibn Sulayman informed us, from ʿAli ibn Yazid, from al-Qasim Abu ʿAbd ar-Rahman, from Abu Umamah, may Allah be pleased with him, from the Prophet ﷺ, who said: "There will be trials in which a man will be a believer in the morning and a disbeliever in the evening, except one whom Allah gives life through knowledge."