Mishkat al-Masabih 1566
وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ عِظَمَ الْجَزَاءِ مَعَ عِظَمِ الْبَلَاءِ وَإِنَّ اللَّهَ عَزَّ وَجَلَّ إِذَا أَحَبَّ قَوْمًا ابْتَلَاهُمْ فَمَنْ رَضِيَ فَلَهُ الرِّضَا وَمَنْ سَخِطَ فَلَهُ السَّخَطُ» . رَوَاهُ التِّرْمِذِيُّ وَابْنُ مَاجَه
From Anas, who said: The Messenger of Allah ﷺ said: "The greatness of the reward goes with the greatness of the trial. When Allah, Mighty and Majestic, loves a people, He tries them. Whoever is content has [His] pleasure, and whoever is displeased has [His] displeasure." Reported by at-Tirmidhi and Ibn Majah.