Suhayb reported,

The Messenger of Allah ﷺ said, "I marvel at the affair of the believer. Indeed, every matter of the believer is good for him, and that is not the case for anyone except the believer. If prosperity reaches him, he is grateful, and that is good for him. If hardship strikes him, he is patient, and that is good for him."

Ahmad 18934

Sahih

حدثنا بهز وحجاج قالا ثنا سليمان بن المغيرة عن ثابت عن عبد الرحمن بن أبي ليلى

عن صهيب قال

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

أحمد 18934صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Suhayb bin Sinan
Numbering
Darussalam 18934
Ahmad 18934