When writers die they become books, which is, after all, not too bad an incarnation.

Jorge Luis Borges (1899-1986) Argentine writer
Quoted in “The Talk of the Town” column, The New Yorker (1986-07-07)

This is the earliest reference I could find (which I've not been able to confirm) to this frequently attributed quotation.