BUKHARI 6361: from Abū Hurayrah —
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."

البخاري ٦٣٦١: عن ابو هريره —
أَنَّهُ سَمِعَ النَّبِيَّ ﷺ يَقُولُ اللَّهُمَّ فَأَيُّمَا مُؤْمِنٍ سَبَبْتُهُ فَاجْعَلْ ذَلِكَ لَهُ قُرْبَةً إِلَيْكَ يَوْمَ الْقِيَامَةِ


Agreed Upon (Luʿluʿ wa-al-Marjān)
Bukhārī > Invocations > § "If I should harm somebody, let that be a means of...
hadithunlocked.com