صحيح مسلم Sahih Muslim كتاب الزهد والرقائق The Book of Zuhd and Softening of Hearts
باب الْمُؤْمِنُ أَمْرُهُ كُلُّهُ خَيْرٌ:

Chapter: The Believer's Affair Is All Good

1 hadith
Hadith 2999
حَدَّثَنَا هَدَّابُ بْنُ خَالِدٍ الْأَزْدِيُّ ، وَشَيْبَانُ بْنُ فَرُّوخَ جَمِيعًا ، عَنْ سُلَيْمَانَ بْنِ الْمُغِيرَةِ وَاللَّفْظُ لِشَيْبَانَ ، حَدَّثَنَا سُلَيْمَانُ ، حَدَّثَنَا ثَابِتٌ ، عَنْ عَبْدِ الرَّحْمَنِ بْنِ أَبِي لَيْلَى ، عَنْ صُهَيْبٍ ، قَالَ : قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : " عَجَبًا لِأَمْرِ الْمُؤْمِنِ ، إِنَّ أَمْرَهُ كُلَّهُ خَيْرٌ ، وَلَيْسَ ذَاكَ لِأَحَدٍ إِلَّا لِلْمُؤْمِنِ إِنْ أَصَابَتْهُ سَرَّاءُ شَكَرَ ، فَكَانَ خَيْرًا لَهُ ، وَإِنْ أَصَابَتْهُ ضَرَّاءُ صَبَرَ ، فَكَانَ خَيْرًا لَهُ " .
Suhaib reported that Allah's Messenger (ﷺ) said: Strange are the ways of a believer for there is good in every affair of his and this is not the case with anyone else except in the case of a believer. For if he has an occasion to feel delight, he thanks (God), thus there is a good for him in it, and if he gets into trouble and shows resignation (and endures it patiently), there is a good for him in it.
Hadith Reference Sahih Muslim / The Book of Zuhd and Softening of Hearts / Hadith: 2999
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة»