Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Let none of you wish for death. If he is a good-doer, he might increase his good deeds. If he is an evil-doer, he might make amends.”
Source: Ṣaḥīḥ al-Bukhārī 7235
Grade: Sahih (authentic) according to Al-Bukhari
عَنْ أَبِي هُرَيْرَةَ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ لَا يَتَمَنَّى أَحَدُكُمْ الْمَوْتَ إِمَّا مُحْسِنًا فَلَعَلَّهُ يَزْدَادُ وَإِمَّا مُسِيئًا فَلَعَلَّهُ يَسْتَعْتِبُ
7235 صحيح البخاري كتاب التمني باب ما يكره من التمني