Sahih Muslim, Book 52, Hadith 46 (Muslim 7007)

Abu Huraira reported Allah's Messenger (ﷺ) as saying:

The Similitude of a believer is that of (a standing) crop which the air continues to toss from one side to another; in the same way a believer always (receives the strokes) of misfortune. The similitude of a hypocrite is that of a cypress tree which does not move until it is uprooted.