“Ben Graham, my friend and teacher, long ago described the mental attitude toward market fluctuations that I believe to be most conducive to investment success. He said that you should imagine market quotations as coming from a remarkably accommodating fellow named Mr. Market who is your partner in a private business.”
Quoting Benjamin Graham.
From the 1987 letter to Berkshire shareholders (dated February 1988), in the section "Marketable Securities - Permanent Holdings". Buffett is quoting or crediting Benjamin Graham.
Berkshire Hathaway shareholder letter (for 1987) (opens in a new tab)