Riyad as-Salihin, Book 1, Hadith 39 (In-Book)

Abu Hurairah (May Allah be pleased with him) reported that: The Messenger of Allah said: "He whom Allah intends good, He makes him to suffer from some affliction".[Al- Bukhari].

وعن أبي هريرة رضي الله عنه قال‏:‏ قال رسول الله صلى الله عليه وسلم ‏ "‏ من يرد الله به خيراً يصب منه‏" ‏ ‏:‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏

sunnah.com