550. Next to the sick and dead person
اَللَّهُمَّ اغْفِرْ لِي وَلَهُ وَأَعْقِبْنِي مِنْهُ عُقْبٰى حَسَنَةً
Allaahummaghfir li walahu, wa a’qibni minhu ‘uqba hasanah
O Allah, forgive me and him, and compensate me with someone better than him.
Umm Salama (RA) reported Allah's Messenger (ﷺ) as saying: Whenever you visit the sick or the dead, supplicate for good because angels say" Amen" to whatever you say. She added: When Abu Salama died, I went to the Messenger of Allah (ﷺ) and said: Messenger of Allah, Abu Salama has died. He told me to recite:(The dua is mentioned above) So I said (this), and Allah gave me in exchange Muhammad (ﷺ), who is better for me than him (Abu Salama).
Related Duas:
When closing the eyes of the deceased (for female)
Dua of sickness and evil eye
Dua of exorcise for various diseases
Dua of sickness
Dua to relieve pain #1
When the sick have renounced all hope of life #1
Excellence of visiting the sick #2
When in fear of afflicting someone with one’s eye
Dua to relieve pain #2
Custody from evil eye
Instruction for the one nearing death #2
Dua in case of incurable disease #2