One of the main characters in Tolstoy's War and Peace (Pierre) was also almost executed. You can read the scene here:
https://www.gutenberg.org/files/2600/2600-h/2600-h.htm#link2...
Fascinating! I wonder if Tolstoy was depecting Dostoevsky. I guess I'll have to read War and Peace as my enormous literary undertaking of the summer.
One could argue that this was the defining moment of his life, and most of his greatest works were motivated in some way by the intensity of that experience. So yeah, for lots more on this, read Dostoevsky.