Lord of Light is an epic fantasy novel by Roger Zelazny.

Warning: Wikipedia contains spoilers.

It contains a somewhat famous, humorous passage describing the agnostic blessing of a dead person, which has almost legal-sounding disclaimers regarding the nature and desires of the Almighty.