Sahih Muslim 2601 b
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
اللَّهُمَّ إِنِّي أَتَّخِذُ عِنْدَكَ عَهْدًا لَنْ تُخْلِفَنِيهِ فَإِنَّمَا أَنَا بَشَرٌ فَأَىُّ الْمُؤْمِنِينَ آذَيْتُهُ شَتَمْتُهُ لَعَنْتُهُ جَلَدْتُهُ فَاجْعَلْهَا لَهُ صَلاَةً وَزَكَاةً وَقُرْبَةً تُقَرِّبُهُ بِهَا إِلَيْكَ يَوْمَ الْقِيَامَةِ "
Abu Huraira reported Allah's Apostle (ﷺ) as saying:
O Allah, I make a covenant with You against which You wouldst never go. I am a human being and thus for a Muslim whom I give any harm or whom I scold or upon whom I invoke curse or whom I beat, make this a source of blessing, purification and nearness to You on the Day of Resurrection.
Full reference and source
Sahih Muslim 2601 b In-book : Book 45, Hadith 117 USC-MSA web (English) : Book 32, Hadith 6290 (deprecated)
View source on Sunnah.com (opens in a new tab)