Anas ibn Malik reported:
The Prophet (ﷺ), said, “None of you should wish for death due to a calamity that has afflicted him. Yet if he must do something, let him say: O Allah, keep me alive so long as life is good for me, and cause me to die if death is better for me.”
Source: Ṣaḥīḥ al-Bukhārī 5671, Ṣaḥīḥ Muslim 2680
Anas ibn Malik reported:
The Prophet (ﷺ), said, “None of you should wish for death due to a calamity that has afflicted him. Yet if he must do something, let him say: O Allah, keep me alive so long as life is good for me, and cause me to die if death is better for me.”
Source: Ṣaḥīḥ al-Bukhārī 5671, Ṣaḥīḥ Muslim 2680