(6) باب مَا يُكْرَهُ مِنَ التَّمَنِّي
Narrated Sa`d bin Ubaid:
(the Maula of `Abdur-Rahman bin Azhar) Allah's Messenger (ﷺ) said, "None of you should long for death, for if he is a good man, he may increase his good deeds, and if he is an evil-doer, he may stop the evil deeds and repent."
Reference: Sahih al-Bukhari 7235
In-book reference: Book 94, Hadith 10
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 90, Hadith 341