Hadith 5383

Abu Huraira reported God's messenger as saying, "Do good deeds before trials come like portions of a dark night when a man will be a believer in the morning and an infidel in the evening, and a believer in the evening and an infidel in the morning, selling his religion for some worldly goods" Muslim transmitted it.

وَعَنْ أَبِي هُرَيْرَةَ قَالَ: قَالَ رَسُولُ اللَّهِ صلى الله عَلَيْهِ وَسلم: «بَادرُوا بِالْأَعْمَالِ فِتناً كَقِطَعِ اللَّيْلِ الْمُظْلِمِ يُصْبِحُ الرَّجُلُ مُؤْمِنًا وَيُمْسِي كَافِرًا وَيُمْسِي مُؤْمِنًا وَيُصْبِحُ كَافِرًا يَبِيعُ دِينَهُ بِعرْض من الدُّنْيَا» . رَوَاهُ مُسلم

Reference: 5653830
In-book reference: Book 27, Hadith 5383