“Remember the late Barton Biggs' observation: "A bull market is like sex. It feels best just before it ends.") The antidote to that kind of mistiming is for an investor to accumulate shares over a long period and never to sell when the news is bad and stocks are well off their highs.”
Quoting Barton Biggs.
From the 2013 letter to Berkshire shareholders (dated February 2014), in the section "Some Thoughts About Investing". Buffett is quoting or crediting Barton Biggs.
Berkshire Hathaway shareholder letter (for 2013) (opens in a new tab)