Umm al-Fadl reported: The Prophet, peace and blessings be upon him, entered the home of Al-‘Abbas while he was complaining and wishing for death. The Prophet said, “O ‘Abbas, O uncle of the Messenger of Allah, do not wish for death. If you are a good-doer, your goodness will be added to your goodness, and it will be good for you. If you are an evil-doer, you will be given time to make amends for your evil, and it will be good for you.”
Source: Musnad Aḥmad 26874
Grade: Sahih (authentic) according to Al-Albani
عَنْ أُمِّ الْفَضْلِ أَنَّ النَّبِيَّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ دَخَلَ عَلَى الْعَبَّاسِ وَهُوَ يَشْتَكِي فَتَمَنَّى الْمَوْتَ فَقَالَ يَا عَبَّاسُ يَا عَمَّ رَسُولِ اللهِ لَا تَتَمَنَّ الْمَوْتَ إِنْ كُنْتَ مُحْسِنًا تَزْدَادُ إِحْسَانًا إِلَى إِحْسَانِكَ خَيْرٌ لَكَ وَإِنْ كُنْتَ مُسِيئًا فَإِنْ تُؤَخَّرْ تَسْتَعْتِبْ مِنْ إِسَاءَتِكَ خَيْرٌ لَكَ
26874 مسند أحمد بن حنبل
3368 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح الترغيب