Sahih al-Bukhari, Book 94, Hadith 10 (Bukhari 6961)

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."