Narrated Anas bin Malik:
The Prophet said, “None of you should wish for death because of a calamity befalling him; but if he has to wish for death, he should say: “O Allah! Keep me alive as long as life is better for me, and let me die if death is better for me.’ ”
(Sahih Bukhari Volume 7, Book 70, Number 575)
Narrated Anas:
If I had not heard the Prophet saying, “You should not long for death,” I would have longed (for it).
(Sahih Bukhari Volume 9, Book 90, Number 339)
*PS: i say wretchedness because of what the hands of humans have sowed, not because of what Allah has created, as jean-paul sartre said “hell is other people”