Suhayb reported,

The Messenger of Allah ﷺ said, "How remarkable is the affair of the believer. All of his affairs are good, and this is not the case for anyone except the believer. If something pleasing happens to him, he is grateful, and that is good for him. If something harmful befalls him, he is patient, and that is good for him."

Azami 12528

Sahih

عن صهيب قال

قال رسول الله ﷺ: عجبا لأمر المؤمن، إن أمره كله خير، وليس ذاك لأحد إلا للمؤمن، إن أصابته سراء شكر، فكان خيرا له، وإن أصابته ضراء صبر، فكان خيرا له.

الأعظمي 12528صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "And when affliction touches man, he calls upon Us, whether lying on his side, sitting, or standing. But when We remove his affliction from him, he passes on as if he had never called upon Us for the affliction that touched him. Thus is made pleasing to the transgressors what they have been doing"
Numbering
Jami al-Kamil 12528 (2nd edition)
Azami 12528