Heinlein...
First thing I thought of. Can't remember the name of the book but the main character ends it by saving the crew of a ship and making up a poem as he did so, dying in the process. I suppose you can remember the title? If so please refresh my memory.
Danke. :)