I've had moments in my past where I thought I had died or was dying in my sleep. Most vivid was suddenly not feeling the world or my memories at all. Like it had all been some sort of fiction that just disappeared. Everything was just clear, empty and peaceful. No identity, no world. The world and everything I was once was just gone. Just left with a blank slate that I felt I could do whatever I wanted with. Then I was suddenly pulled away from it and remembered everything. Other times, I dreamt I was in a similar condition, feeling really content. There was a voice saying "You can stay if you want. You don't have to go back." And I really really wanted to stay. But I felt that if I did stay, I wouldn't wake up ever again.
Waking brushes from death though, I remember as a kid running across the road like an idiot without looking and then seeing the front of a car right up close to me. Couldn't remember anything until suddenly finding myself just safely standing on the other side of the road. That car should have absolutely hit me though.