“But, like Cinderella at the ball, you must heed one warning or everything will turn into pumpkins and mice: Mr. Market is there to serve you, not to guide you.”
From the 1987 letter to Berkshire shareholders (dated February 1988), in the section "Marketable Securities - Permanent Holdings".
Berkshire Hathaway shareholder letter (for 1987) (opens in a new tab)