Sunan Ibn Majah #4171
Sahih (Authentic)
Patience
عَجَبًا لأَمْرِ الْمُؤْمِنِ إِنَّ أَمْرَهُ كُلَّهُ لَهُ خَيْرٌ إِنْ أَصَابَتْهُ سَرَّاءُ شَكَرَ فَكَانَ خَيْرًا لَهُ وَإِنْ أَصَابَتْهُ ضَرَّاءُ صَبَرَ فَكَانَ خَيْرًا لَهُ
The Messenger of Allah (ﷺ) said: 'How wonderful is the affair of the believer, for all his affairs are good. If something good happens to him, he gives thanks and that is good for him. If something bad happens to him, he bears it with patience and that is good for him.'
Chain of Narration (Isnad)
Narrated Anas bin Malik