صحيح مسلم Sahih Muslim كتاب الإيمان The Book of Faith
باب الْحَثِّ عَلَى الْمُبَادَرَةِ بِالأَعْمَالِ قَبْلَ تَظَاهُرِ الْفِتَنِ:

Chapter: Encouragement to hasten to do good deeds before the emergence of the Fitnah

1 hadith
Hadith 118
حَدَّثَنِي يَحْيَى بْنُ أَيُّوبَ ، وَقُتَيْبَةُ ، وَابْنُ حُجْرٍ جَمِيعًا ، عَنْ إِسْمَاعِيل بْنِ جَعْفَرٍ ، قَالَ ابْنُ أَيُّوبَ : حَدَّثَنَا إِسْمَاعِيل ، قَالَ : أَخْبَرَنِي الْعَلَاءُ ، عَنْ أَبِيهِ ، عَنْ أَبِي هُرَيْرَةَ ، أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، قَالَ : " بَادِرُوا بِالأَعْمَالِ فِتَنًا كَقِطَعِ اللَّيْلِ الْمُظْلِمِ ، يُصْبِحُ الرَّجُلُ مُؤْمِنًا ، وَيُمْسِي كَافِرًا ، أَوْ يُمْسِي مُؤْمِنًا ، وَيُصْبِحُ كَافِرًا ، يَبِيعُ دِينَهُ بِعَرَضٍ مِنَ الدُّنْيَا " .
It is narrated on the authority of Abu Hurairah (RA) that the Messenger of Allah (ﷺ) observed: Be prompt in doing good deeds (before you are overtaken) by turbulence which would be like a part of the dark night. During (that stormy period) a man would be a Muslim in the morning and an unbeliever in the evening or he would be a believer in the evening and an unbeliever in the morning, and would sell his faith for worldly goods.
Hadith Reference Sahih Muslim / The Book of Faith / Hadith: 118
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة ، انفرد به مسلم - انظر ((التحفة)) برقم (13990)»