Verily, a man would perform the deeds of the people of Paradise for a long time, then his deeds would be concluded with the deeds of the people of Hell. And verily, a man would perform the deeds of the people of Hell for a long time, and then his deeds would be concluded with the deeds of the people of Paradise. (Using translation from Muslim 2651)
"إِنَّ الرَّجُلَ لَيَعْمَلُ الزَّمنَ الطَّويلَ بِعَمَلِ أهْلِ الْجَنَّةِ، ثُمَّ يَختِمُ الله عَمَلَهُ بِعَمَلِ أَهْل النَّارِ، فَيَجْعَلُه مِنْ أهْلِ النَّارِ، وإن الرَّجُلَ لَيَعْمَلُ الزَّمَن الطَّويلَ بَعمَلِ أهْلِ النَّارِ، ثُمَّ يَخْتِمُ الله عَمَلَهُ بَعَمل أَهْل الْجَنَّةِ فَيَجْعَلُهُ مِنْ أهْلِ الْجَنَّةِ فَيُدْخِلُهُ الْجَنَّةَ ".