Interesting news item, about a brainscan accidentally taken at the moment of death (the patient suffered a fatal heart attack during an epilepsy scan). It seems the brain produces signals similar to those found during memory recall or dreaming, up to 30 seconds after the heart stops beating, suggesting that maybe our life does indeed flash before our eyes as we leave our physical bodies
https://www.bbc.co.uk/news/world-us-canada-60495730
https://www.bbc.co.uk/news/world-us-canada-60495730