Abu Hurairah (RA) 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.
Hadith Referenceصحيح مسلم / كتاب صفة القيامة والجنة والنار / 2809
Ka'b reported that Allah's Messenger (ﷺ) said that the similitude of a believer is that of a standing crop in a field which is shaken by wind; it (sometimes) throws it down and then it comes to its original position, until it withers away. The similitude of a non-believer is that of a cypress tree which stands on its roots and nothing shakes it but it is uprooted (with) one (violent stroke).
Hadith Referenceصحيح مسلم / كتاب صفة القيامة والجنة والنار / 2810
'Abdul Rahman bin Ka'b bin Malik reported on the authority of his father that Allah's Messenger (ﷺ) said that the similitude of a believer is that of a standing crop. The wind sometimes shakes it and sometimes raises it up and then it comes to its destined end. And the similitude of a hypocrite is that of a cypress tree which is not affected by anything but is uprooted once for all.
Hadith Referenceصحيح مسلم / كتاب صفة القيامة والجنة والنار / 2810
This hadith has been narrated through another chain, of transmitters also, but in the narration of Mahmud (the words are): "The similitude of a non-believer is that of a cypress tree," and Ibn Hatim said: "The similitude of a hypocrite," as Zuhair said.
Hadith Referenceصحيح مسلم / كتاب صفة القيامة والجنة والنار / 2810