Hadith 1566

He reported God’s messenger as saying, “The magnitude of the reward goes along with the magnitude of the affliction. When God who is great and glorious loves people He afflicts them, and those who accept it gladly receive God’s good pleasure, but those who are displeased receive God’s displeasure. Tirmidhi and Ibn Majah transmitted it.

وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ عِظَمَ الْجَزَاءِ مَعَ عِظَمِ الْبَلَاءِ وَإِنَّ اللَّهَ عَزَّ وَجَلَّ إِذَا أَحَبَّ قَوْمًا ابْتَلَاهُمْ فَمَنْ رَضِيَ فَلَهُ الرِّضَا وَمَنْ سَخِطَ فَلَهُ السَّخَطُ» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَه

Reference: 5615660
In-book reference: Book 5, Hadith 1566