Muwatta Malik, Book 50, Hadith 1720 (In-Book)

Yahya related to me from Malik that Muhammad ibn Abdullah ibn Abi Sasaca said that he heard Abu'l-Hubab Said ibn Yasar say that he had heard Abu Hurayra say, "The Messenger of Allah, may Allah bless him and grant him peace, said, 'Allah afflicts the one for whom He desires good.'"

وَحَدَّثَنِي مَالِكٌ، عَنْ مُحَمَّدِ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي صَعْصَعَةَ، أَنَّهُ قَالَ سَمِعْتُ أَبَا الْحُبَابِ، سَعِيدَ بْنَ يَسَارٍ يَقُولُ سَمِعْتُ أَبَا هُرَيْرَةَ، يَقُولُ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ مَنْ يُرِدِ اللَّهُ بِهِ خَيْرًا يُصِبْ مِنْهُ ‏" ‏ ‏.‏

sunnah.com

also referenced under: Book 50, Hadith 7 (USC-MSA)