Sahih al-Bukhari 6361
Sahih al-Bukhari · Book 80: Invocations · "If I should harm somebody, let that be a means of purification and mercy for him."
Narrated Abu Huraira:
حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ ، حَدَّثَنَا ابْنُ وَهْبٍ ، قَالَ أَخْبَرَنِي يُونُسُ ، عَنِ ابْنِ شِهَابٍ ، قَالَ أَخْبَرَنِي سَعِيدُ بْنُ الْمُسَيَّبِ ، عَنْ أَبِي هُرَيْرَةَ ـ رضى الله عنه ـ أَنَّهُ سَمِعَ النَّبِيَّ صلى الله عليه وسلم يَقُولُ " اللَّهُمَّ فَأَيُّمَا مُؤْمِنٍ سَبَبْتُهُ فَاجْعَلْ ذَلِكَ لَهُ قُرْبَةً إِلَيْكَ يَوْمَ الْقِيَامَةِ " .
that he heard the Prophet (ﷺ) saying, "O Allah! If I should ever abuse a believer, please let that be a means of bringing him near to You on the Day of Resurrection."