Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:7742ʿAbd al-Razzāq > Maʿmar > Ashʿath b. ʿAbdullāh > Shahr b. Ḥawshab > Abū Hurayrah

“A man may do the deeds of the people of goodness for seventy years, then when he makes his will, he is unjust in his will, so he ends (his life) with evil deeds and enters Hell. And a man may do the people of evil for seventy years, then he is just in his will, so he ends (his life) with good deeds and enters Paradise.”Abu Hurairah said: “Recite, if you wish: “These are the limits (set by) Allah (STW) up to His saying: 'a disgraceful torment'” (Using translation from Ibn Mājah 2704)  

أحمد:٧٧٤٢حَدَّثَنَا عَبْدُ الرَّزَّاقِ أَخْبَرَنَا مَعْمَرٌ عَنْ أَشْعَثَ بْنِ عَبْدِ اللهِ عَنْ شَهْرِ بْنِ حَوْشَبٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللهِ ﷺ إِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ الْخَيْرِ سَبْعِينَ سَنَةً فَإِذَا أَوْصَى حَافَ فِي وَصِيَّتِهِ فَيُخْتَمُ لَهُ بِشَرِّ عَمَلِهِ فَيَدْخُلُ النَّارَ وَإِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِالشَّرِّ سَبْعِينَ سَنَةً فَيَعْدِلُ فِي وَصِيَّتِهِ فَيُخْتَمُ لَهُ بِخَيْرِ عَمَلِهِ فَيَدْخُلُ الْجَنَّةَ قَالَ ثُمَّ يَقُولُ أَبُو هُرَيْرَةَ وَاقْرَءُوا إِنْ شِئْتُمْ {تِلْكَ حُدُودُ اللهِ} [النساء 13] إِلَى قَوْلِهِ {وَلَهُ عَذَابٌ مُهِينٌ} [النساء 14]  


See similar narrations below:

Collected by Ibn Mājah, Suyūṭī
ibnmajah:2704Aḥmad b. al-Azhar > ʿAbd al-Razzāq b. Hammām > Maʿmar > Ashʿath b. ʿAbdullāh > Shahr b. Ḥawshab > Abū Hurayrah

“A man may do the deeds of the people of goodness for seventy years, then when he makes his will, he is unjust in his will, so he ends (his life) with evil deeds and enters Hell. And a man may do the people of evil for seventy years, then he is just in his will, so he ends (his life) with good deeds and enters Paradise.”Abu Hurairah said: “Recite, if you wish: “These are the limits (set by) Allah (STW) up to His saying: 'a disgraceful torment'”  

ابن ماجة:٢٧٠٤حَدَّثَنَا أَحْمَدُ بْنُ الأَزْهَرِ حَدَّثَنَا عَبْدُ الرَّزَّاقِ بْنُ هَمَّامٍ أَنْبَأَنَا مَعْمَرٌ عَنْ أَشْعَثَ بْنِ عَبْدِ اللَّهِ عَنْ شَهْرِ بْنِ حَوْشَبٍ عَنْ أَبِي هُرَيْرَةَ قَالَ

قَالَ رَسُولُ اللَّهِ ﷺ إِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ الْخَيْرِ سَبْعِينَ سَنَةً فَإِذَا أَوْصَى حَافَ فِي وَصِيَّتِهِ فَيُخْتَمُ لَهُ بِشَرِّ عَمَلِهِ فَيَدْخُلُ النَّارَ وَإِنَّ الرَّجُلَ لَيَعْمَلُ بِعَمَلِ أَهْلِ الشَّرِّ سَبْعِينَ سَنَةً فَيَعْدِلُ فِي وَصِيَّتِهِ فَيُخْتَمُ لَهُ بِخَيْرِ عَمَلِهِ فَيَدْخُلُ الْجَنَّةَ قَالَ أَبُو هُرَيْرَةَ وَاقْرَءُوا إِنْ شِئْتُمْ {تِلْكَ حُدُودُ اللَّهِ} إِلَى قَوْلِهِ {عَذَابٌ مُهِينٌ}  

suyuti:5536a

“A man may do the deeds of the people of goodness for seventy years, then when he makes his will, he is unjust in his will, so he ends (his life) with evil deeds and enters Hell. And a man may do the people of evil for seventy years, then he is just in his will, so he ends (his life) with good deeds and enters Paradise.”Abu Hurairah said: “Recite, if you wish: “These are the limits (set by) Allah (STW) up to His saying: 'a disgraceful torment'” (Using translation from Ibn Mājah 2704)   

السيوطي:٥٥٣٦a

"إِنَّ الرَّجُلَ ليَعْمَلُ بعَمَلَ أهْلِ الْخَيرِ سَبْعِينَ سَنَةً فَإِذا وَصَّى حَاف فِي وَصِيتَّهِ، فيُخْتَمُ لَه بِشَرِّ عَمَلِهِ فَيَدْخُلُ النَّارَ، وَإِنَّ الرَّجُلَ لَيَعْمَلُ بعَمَلِ أهْلِ الشَّرِّ سَبْعِين سنةً، فَيَعْدِلُ فِي وَصيَّتِه فيُخْتَم لَه بِخَيرِ عَمَلِهِ فِيَدْخُلُ الْجَنَّةَ".  

[حم] أحمد [هـ] ابن ماجة عن أبي هريرة