Many years ago I read a short story about a man being transported to his execution. I thought it was by Chekhov but can’t find it so may have misremembered that. Aware he has only minutes to live, he is entranced by every detail of the world.
Does this ring any bells at all?