[Machine] The Messenger of Allah ﷺ said: Indeed, a man may perform the deeds of the people of Paradise, and yet he is written in the record as being of the people of Hell. Then, before his death, he changes and performs the deeds of the people of Hell, so he dies while being among them, and enters Hell. And indeed, a man may perform the deeds of the people of Hell, and yet he is written in the record as being of the people of Paradise. Then, before his death, he changes and performs the deeds of the people of Paradise, so he dies while being among them, and enters Paradise.
أَنَّ رَسُولَ اللهِ ﷺ قَالَ إِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ الْجَنَّةِ وَإِنَّهُ لَمَكْتُوبٌ فِي الْكِتَابِ مِنْ أَهْلِ النَّارِ فَإِذَا كَانَ قَبْلَ مَوْتِهِ تَحَوَّلَ فَعَمِلَ بِعَمَلِ أَهْلِ النَّارِ فَمَاتَ فَدَخَلَ النَّارَ وَإِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ النَّارِ وَإِنَّهُ لَمَكْتُوبٌ فِي الْكِتَابِ مِنْأَهْلِ الْجَنَّةِ فَإِذَا كَانَ قَبْلَ مَوْتِهِ تَحَوَّلَ فَعَمِلَ بِعَمَلِ أَهْلِ الْجَنَّةِ فَمَاتَ فَدَخَلَهَا