Haritha bin Mudarrib reported,

I visited Khabab when he had been cauterized on his stomach, and he said, "I do not know of anyone among the companions of the Prophet ﷺ who has endured trials like the ones I have endured. There was a time during the lifetime of the Prophet ﷺ when I could not find a single dirham, yet now there are forty thousand in a corner of my house. Were it not that the Messenger of Allah ﷺ forbade us, or forbade that we wish for death, I would have wished for it."

Tirmidhi 970

Sahih

حدثنا محمد بن بشار حدثنا محمد بن جعفر حدثنا شعبة عن أبي إسحق

عن حارثة بن مضرب قال

دخلت على خباب وقد اكتوى في بطنه فقال ما أعلم أحدا لقي من أصحاب النبي ﷺ من البلاء ما لقيت لقد كنت وما أجد درهما على عهد النبي ﷺ وفي ناحية من بيتي أربعون ألفا ولولا أن رسول الله ﷺ نهانا أو نهى أن نتمنى الموت لتمنيت

الترمذي 970صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Funerals
Chapter
Prohibition of wishing for death
Numbering
Darussalam 970
Tirmidhi 970