Hadith.366 - The Commander of the Faithful Imam Ali ibn Abi Talib عليه السلام said:
"When a believer is at the point of death, the Angel of Death reassures (secures) them ; without this, they would not be able to remain settled."
when death approaches, The Prophet صلى الله عليه وعلى آله وسلم and the divinely appointed proofs (Imams, peace be upon them all) are made present to the dying person so that they may see them. If the person is a believer, they will see them in a pleasing state; if they are not a believer, they will see them in a way they dislike. Allah سبحانه وتعالى, the Blessed and Exalted, has said:
"Then why, when the soul reaches the throat, and you are at that moment looking on, and We are nearer to him than you, but you do not see" (Sural Al Waqi’ah 56:83-85)