Sahih Muslim #6819 · The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness

Sahih MuslimHammam b. Munabbih said
Sahih Muslim · Book 48 · The Book Pertaining to the Remembrance of Allah, Supplication, Repentance and Seeking Forgiveness
Sahih Muslim · كتاب 48 · كتاب الذكر والدعاء والتوبة والاستغفار
Abu Huraira narrated to us ahadith from Allah's Messenger (ﷺ) and out of these one is that Allah's Messenger (ﷺ) said: None amongst you should make a request for death, and do not call for it before it comes, for when any one of you dies, he ceases (to do good) deeds and the life of a believer is not prolonged but for goodness.
حَدَّثَنَا مُحَمَّدُ بْنُ رَافِعٍ، حَدَّثَنَا عَبْدُ الرَّزَّاقِ، أَخْبَرَنَا مَعْمَرٌ، عَنْ هَمَّامِ بْنِ مُنَبِّهٍ، قَالَ هَذَا مَا حَدَّثَنَا أَبُو هُرَيْرَةَ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم فَذَكَرَ أَحَادِيثَ مِنْهَا وَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏
"‏ لاَ يَتَمَنَّى أَحَدُكُمُ الْمَوْتَ وَلاَ يَدْعُ بِهِ مِنْ قَبْلِ أَنْ يَأْتِيَهُ إِنَّهُ إِذَا مَاتَ أَحَدُكُمُ انْقَطَعَ عَمَلُهُ وَإِنَّهُ لاَ يَزِيدُ الْمُؤْمِنَ عُمْرُهُ إِلاَّ خَيْرًا ‏"‏ ‏.‏
Reference : Sahih Muslim 6819In-book reference : Book 48, Hadith 15