Anas (May Allah be pleased with him) reported that:
The Messenger of Allah (ﷺ) said, "When Allah intends good for His slave, He punishes him in this world, but when He intends an evil for His slave, He does not hasten to take him to task but calls him to account on the Day of Resurrection."[At-Tirmidhi].
Arabic/English book reference: Book 1, Hadith 43