Muwatta Malik, Book 16, Hadith 40 (USC-MSA)

Yahya related to me from Malik that he had heard from Abu'l-Hubab Said ibn Yasar from Abu Hurayra that the Messenger of Allah, may Allah bless him and grant him peace, said, "The mumin continues to be struck by misfortune in his children and close friends until he meets Allah with no wrong actions."

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

sunnah.com

also referenced under: Book 16, Hadith 562 (In-Book)