عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ قَالَ: ((إِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ الْجَنَّةِ وَإِنَّهُ لَمَكْتُوبٌ مِنْ أَهْلِ النَّارِ فَإِذَا كَانَ قَبْلَ مَوْتِهِ تَحَوَّلَ فَعَمِلَ بِعَمَلِ أَهْلِ النَّارِ فَمَاتَ فَدَخَلَ النَّارَ، وَإِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ النَّارِ وَإِنَّهُ لَمَكْتُوبٌ فِي الْكِتَابِ مِنْ أَهْلِ الْجَنَّةِ فَإِذَا كَانَ قَبْلَ مَوْتِهِ تَحَوَّلَ فَعَمِلَ بِعَمَلِ أَهْلِ الْجَنَّةِ فَمَاتَ فَدَخَلَهَا))
It is narrated from Sayyidah Aisha (may Allah be pleased with her) that the Messenger of Allah (peace and blessings be upon him) said: "Indeed, a man performs the deeds of the people of Paradise, while he is written among the people of Hell. When the time before his death comes, his state changes and he begins to do the deeds of the people of Hell, and he dies in that state and enters Hell. On the other hand, a man performs the deeds of the people of Hell, while he is written among the people of Paradise. When the time before his death comes, he transitions from his previous state and begins to do the deeds of the people of Paradise, and he dies in that state and enters Paradise."