ARTHUR: I don’t want to die now, I’ve still got a headache! I don’t want to go to heaven with a headache, I’d be all cross and wouldn’t enjoy it.
Douglas Adams (1952-2001) English author, humourist, screenwriter
Hitchhiker’s Guide to the Galaxy, Phase 1, “Fit the 2nd” (BBC radio) (1978-03-15)
(Source)
The adaptation into the original novelization, Hitchhiker's Guide to the Galaxy, ch. 7 (1979), is nearly the same:"I don't want to die now!" he yelled. "I've still got a headache! I don't want to go to heaven with a headache, I'd be all cross and wouldn't enjoy it!"