Abu Hurairah reported,

The Prophet ﷺ said, "When a person is dying, the angels come to him. If the man is righteous, they say, 'Come out, you good soul that was in a good body...'"In another narration, "When the believer is about to die, the angels of mercy come to him with white silk and say, 'Come out to the mercy of Allah.' So it comes out like the sweetest fragrance of musk, and they pass it from one to another, smelling it, until they bring it to the gate of heaven...As for the disbeliever, the angels of punishment come to him with sackcloth and say, 'Come out to the wrath of Allah.' So it comes out like the foulest stench of a corpse, and they take it to the gate of the earth."

Azami 572

Sahih

عن أبي هريرة

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

الأعظمي 572صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the angels
Section
Witnessing of the angels at the time of death
Numbering
Jami al-Kamil 572 (2nd edition)
Azami 572