إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ، اللَّهُمَّ أَجِرْنِي فِي مُصِيبَتِي وَاخْلُفْ لِي خَيْرًا مِنْهَا
Inna lillahi wa inna ilayhi raji'un, Allahumma ajirni fi musibati wakhluf li khayran minha
En verdad, a Allah pertenecemos y a Él regresaremos. Oh Allah, recompénsame por mi aflicción y reemplázala con algo mejor.
Recite when facing any calamity or loss
Umm Salamah (RA) said this when her husband died, and Allah replaced him with the Prophet (PBUH) as her husband.