Mishkat al-Masabih 1541
وَعَنْ كَعْبِ بْنِ مَالِكٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «مَثَلُ الْمُؤْمِنِ كَمَثَلِ الْخَامَةِ مِنَ الزَّرْعِ تُفَيِّئُهَا الرِّيَاح تصرعها مرّة وتعدلها أُخْرَى حَتَّى يَأْتِيهِ أَجَلُهُ وَمَثَلُ الْمُنَافِقِ كَمَثَلِ الْأَرْزَةِ الْمُجْذِيَةِ الَّتِي لَا يُصِيبُهَا شَيْءٌ حَتَّى يَكُونَ انْجِعَافُهَا مَرَّةً وَاحِدَة»
From Kaʿb ibn Malik, who said: The Messenger of Allah ﷺ said: "The believer is like a fresh stalk of crops; the winds bend it, knocking it down at one time and straightening it at another, until his appointed time comes to him. And the hypocrite is like the firmly rooted cedar, which nothing afflicts until it is uprooted all at once."