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].
Arabic/English book reference: Book 1, Hadith 39