Warren Buffett:

A simple rule dictates my buying: Be fearful when others are greedy, and be greedy when others are fearful.

[Via 37signals]