Deathbed phenomena
In scientific literature, they have been called as death-related sensory experiences (DRSE). Dying patients have reported to staff working in hospices they have experienced comforting visions.