Ernest Hemingway said this quote

The most essential gift for a good writer is a built-in shockproof shit detector. This is the writer's radar and all great writers have had it.