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