There are three rules for writing a novel. Unfortunately, no one knows what they are.
W. Somerset Maugham (1874-1965) English novelist and playwright [William Somerset Maugham]
(Attributed)
The earliest (uncited) attribution is from 1977. More discussion here.