The intense suffering of this experience left a lasting stamp on Dostoevsky’s mind.
(the author talks about Dostoevsky's experience of being condemned to death and then spared at the last minute by his Majesty)
I know that one of the synonyms for the word stamp is "mark" but I don't know if it can be used when referring to people as I couldn't find any examples or definitions stating that.