“You must also resist the temptation to stray from your guidelines: If you aren't willing to own a stock for ten years, don't even think about owning it for ten minutes.”
From the 1996 letter to Berkshire shareholders (dated February 1997), in the section "Common Stock Investments".
Berkshire Hathaway shareholder letter (for 1996) (opens in a new tab)