“If you would tend to react that way, you should not own Berkshire shares now, just as you should entirely avoid owning stocks if a crashing market would lead you to panic and sell.”
From the 1996 letter to Berkshire shareholders (dated February 1997), in the section "Super-Cat Insurance".
Berkshire Hathaway shareholder letter (for 1996) (opens in a new tab)