Reference : Hisn al-Muslim 154

إِنّا للهِ وَإِنَا إِلَـيْهِ راجِعـون ،
اللهُـمِّ اْجُـرْني في مُصـيبَتي، 
وَاخْلُـفْ لي خَيْـراً مِنْـها
Innā lillāhi wa innā ilayhi rāji`ūn, 
Allāhumma-jurni fī muṣībatī 
wa 'khluf lī khayran minhā.


We are from Allah and unto Him we return. 
O Allah take me out of my plight 
and bring to me after it something better.

Reference:
Muslim 2/632.

Chapter: For one afflicted by a calamity