حَدَّثَنَا زُهَيْرٌ ، حَدَّثَنَا جَرِيرٌ ، حَدَّثَنَا الْحَسَنُ بْنُ عُبَيْدِ اللهِ ، عَنْ ثَعْلَبَةَ ، عَنْ أَنَسِ بْنِ مَالِكٍ ، قَالَ : تَبَسَّمَ رَسُولُ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - ثُمَّ قَالَ : عَجِبْتُ لِلْمُؤْمِنِ ، إِنَّ اللهَ لَا يَقْضِي لَهُ قَضَاءً إِلَّا كَانَ خَيْرًا لَهُ .
It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) smiled and then said: "I am amazed at the affair of the believer: whatever Allah Almighty decrees for him is only good for him."
Related hadith on this topic