The Messenger of Allah ﷺ said, "How remarkable is the affair of the believer! All of his affairs are good, and this is true for no one except the believer. If something pleasing befalls him, he is grateful, and that is good for him. If something distressing befalls him, he is patient, and that too is good for him."
قال رسول الله ﷺ: عجبا لأمر المؤمن! إن أمره كله خير، وليس ذلك لأحد إلا للمؤمن، إن أصابته سراء شكر، فكان خيرا له، وإن أصابته ضراء، صبر، فكان خيرا له.