Anas bin Malik reported,

The Prophet ﷺ said, "A man may spend a portion of his life performing deeds such that, had he died doing them, he would have entered Paradise. Then before his death he changes and performs the deeds of the people of the Fire, so he dies and enters the Fire. And a man may spend a portion of his life performing deeds such that, had he died doing them, he would have entered the Fire. Then before his death he changes and performs the deeds of the people of Paradise, so he dies and enters Paradise."

Ahmad 13695

Sahih

حدثنا عفان حدثنا حماد قال أخبرنا حميد

عن أنس

أن النبي ﷺ قال إن الرجل ليعمل البرهة من عمره بالعمل الذي لو مات عليه دخل الجنة فإذا كان قبل موته تحول فعمل عمل أهل النار فمات فدخل النار وإن الرجل ليعمل البرهة من عمره بالعمل الذي لو مات عليه دخل النار فإذا كان قبل موته تحول فعمل بعمل أهل الجنة فمات فدخل الجنة

أحمد 13695صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Anas bin Malik
Numbering
Darussalam 13695
Ahmad 13695