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 pray for yourselves anything but 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 who remain after him, forgive us and him, Lord of the worlds, make his grave spacious for him, and fill it with light for him."

Azami 3534

Sahih

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

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

الأعظمي 3534صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Dying person
Section
Closing the eyes of the deceased
Numbering
Jami al-Kamil 3534 (2nd edition)
Azami 3534