Sunnah.com : Book 7, Hadith 27
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
-عن أم سلمة رضي الله عنها قالت: قال رسول الله صلى الله عليه وسلم : إذا حضرتم المريض، أو الميت، فقولوا خيرا، فإن الملائكة يؤمنون علي �"
Umm Salamah (May Allah be pleased with her):
The Messenger of Allah (ﷺ) said, "When you visit a sick or a dying person, you should utter good words because the angels say `Amin' at what you say.'' She added: When Abu Salamah (May Allah be pleased with him) died, I came to the Prophet (ﷺ) and said: "O Messenger of Allah, Abu Salamah has died." He (ﷺ) directed me to supplicate thus: "Allahummaghfir li wa lahu, wa a`qibni minhu `uqba hasanatan [O Allah, forgive me and him, and bestow upon me a better future (give me a better substitute)]." So I supplicated as he directed, and Allah gave me a man who was better for me than Abu Salamah (i.e., the Prophet Muhammad (ﷺ)). (The Prophet (ﷺ) married Umm Salamah afterwards.) [Muslim].
Full reference and source
Sunnah.com : Book 7, Hadith 27 Arabic/English book : Book 7, Hadith 920
View source on Sunnah.com (opens in a new tab)