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) said: "When Allah Almighty intends good and benefit for a people, He puts them to trial."
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 4222
Hadith Takhrij«قال سعيد بن محمد السناري: حسن» «أخرجه البيهقى في "الشعب" [7/ رقم 9785]، وفى "الآداب" [رقم 723، مسند ابویعلیٰ ترقیم الاثری: 4207»