We have all got different opinions about this. Some say instant hell or heaven, some believe you get reincarnated, and then from a scientific POV, it said that when you die you see black and your memories replay.
Originally asked by red on Stack Exchange (outdoors) (CC BY-SA 4.0).