Mishkat al-Masabih 1565
وَعَنْ أَنَسٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا أَرَادَ اللَّهُ تَعَالَى بِعَبْدِهِ الْخَيْرَ عَجَّلَ لَهُ الْعُقُوبَةَ فِي الدُّنْيَا وَإِذَا أَرَادَ اللَّهُ بِعَبْدِهِ الشَّرَّ أَمْسَكَ عَنْهُ بِذَنْبِهِ حَتَّى يُوَافِيَهُ بِهِ يَوْمَ الْقِيَامَةِ» . رَوَاهُ التِّرْمِذِيّ
From Anas, who said: The Messenger of Allah ﷺ said: "When Allah the Exalted wants good for His servant, He hastens the punishment for him in this world; and when Allah wants evil for His servant, He withholds [punishment] from him for his sin until He requites him for it on the Day of Resurrection." Reported by at-Tirmidhi.