Asking for what is best
The Prophet taught that someone so distressed by a hardship that he wishes to die should say this instead of wishing for death.
اللَّهُمَّ أَحْيِنِي مَا كَانَتِ الْحَيَاةُ خَيْرًا لِي، وَتَوَفَّنِي إِذَا كَانَتِ الْوَفَاةُ خَيْرًا لِي
Allaahumma ahyinee maa kaanatil-hayaatu khayral-lee, wa tawaffanee idhaa kaanatil-wafaatu khayral-lee
O Allah, keep me alive as long as life is better for me, and take my soul when death is better for me.
Source: Bukhari, Book of the Sick (5671), Book of Supplications (6351); Muslim, Book of Dhikr (2680); narrated by Anas ibn Malik
Surah Yasin app
Read Yasin and the whole Quran with translation in 11 languages, listen verse by verse with nine reciters and keep your bookmarks on your phone.