Umm Salama bint Abu Umaya reported,

The Messenger of Allah ﷺ came in to visit Abu Salama after his eyes had become fixed in death, so he closed them. Then he said, "When the soul is taken, the sight follows it."Some of his family members began to wail, so he said, "Do not invoke anything upon yourselves except good, for the angels say amen to whatever you say."Then he said, "O Allah, forgive Abu Salama, raise his rank among those who are rightly guided, take charge of his descendants whom he has left behind, forgive us and him, Lord of the worlds, make his grave spacious for him, and fill it with light for him."

Azami 11099

Sahih

عن أم سلمة قالت

دخل رسول الله ﷺ على أبي سلمة، وقد شق بصره فأغمضه، ثم قال: إن الروح إذا قبض تبعه البصر فضج ناس من أهله فقال: لا تدعوا على أنفسكم إلا بخير، فإن الملائكة يؤمنون على ما تقولون ثم قال: اللهم اغفر لأبي سلمة، وارفع درجته في المهديين، واخلفه في عقبه في الغابرين، واغفر لنا وله يا رب العالمين، وافسح له في قبره، ونور له فيه.

الأعظمي 11099صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for illness and funerals, and what relates to them
Section
Supplication when closing the eyes of the deceased
Numbering
Jami al-Kamil 11099 (2nd edition)
Azami 11099