Hadith 8189

وَقَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " لَا يَتَمَنَّ أَحَدُكُمْ الْمَوْتَ وَلَا يَدْعُ بِهِ مِنْ قَبْلِ أَنْ يَأْتِيَهُ ، إِنَّهُ إِذَا مَاتَ أَحَدُكُمْ انْقَطَعَ عَمَلُهُ ، وَإِنَّهُ لَا يَزِيدُ الْمُؤْمِنُ عُمُرُه إِلَّا خَيْرًا " .
And the Prophet Muhammad (peace and blessings be upon him) said: None of you should wish for death, nor should he pray for it before it comes, because when any of you dies, his deeds are cut off, whereas a believer only increases in goodness during his life.
Hadith Reference مسند احمد / مسند المكثرين من الصحابة / 8189
Hadith Grading حکم دارالسلام: إسناده صحيح، خ: 7235، م: 2682