Abu Hurairah reported,

The Messenger of Allah ﷺ said, "None of you should wish for death. If he is a doer of good, perhaps he will increase his good deeds, and if he is a wrongdoer, perhaps he will seek to make amends."

Azami 10955

Sahih

عن أبي هريرة

أن رسول الله ﷺ قال: لا يتمنى أحدكم الموت، إما محسنا فلعله يزداد، وإما مسيئا فلعله يستعتب.

الأعظمي 10955صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Rulings on supplication
Section
Prohibition of supplicating for death
Numbering
Jami al-Kamil 10955 (2nd edition)
Azami 10955