Arabic
إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُونَ اللَّهُمَّ أْجُرْنِي فِي مُصِيبَتِي وَأَخْلِفْ لِي خَيْرًا مِنْهَا
Meaning
Indeed we belong to Allah and to Him we shall return. O Allah, reward me in my affliction and replace it for me with something better.
Source
HadithMuslim 918