This is the duaa that Umm Salama(R.anha) made as taught to her by Abu Salama (R.an) as taught to him by Prophet Muhammad (SalAllahu Alayhi Wa Sallam).

Which resulted in Allah giving Umm Salama (R.anha) the Prophet Muhammad (SalAllahu Alayhi Wa Sallam) as a husband, when Abu Salama (R.an) passed away.

إِنَّا لِلَّهِ وَإِنَّا إِلَيْهِ رَاجِعُوْنَ، اَللَّهُمَّ أْجُرْنِيْ فِيْ مُصِيْبَتِيْ وَأَخْلِفْ لِيْ خَيْرًا مِنْهَا.

'Innaa lillaahi wa 'innaa 'ilayhi raaji'oon, Allaahumma'-jurni fee museebatee wa 'akhliflee khayran minhaa

‘To Allaah we belong and unto Him is our return. O Allaah, recompense me for my affliction and replace it for me with something better.’

[ Muslim 2/632 ]