Sahih Bukhari Volume 007, Book 070, Hadith Number 546.

Narrated By Kab : The Prophet said, "The example of a believer is that of a fresh tender plant, which the wind bends it sometimes and some other time it makes it straight. And the example of a hypocrite is that of a pine tree which keeps straight till once it is uprooted suddenly.