Sahih Muslim, Book 48, Hadith 12 (Muslim 6742)

Nadr b. Anas reported, as when Anas was alive, that he said:

Had Allah's Messenger (ﷺ) not stated this.." None should make a request for death," I would have definitely done that.