The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
Ṣaḥīḥ Muslim 6622
اللَّهُمَّ إِنَّمَا مُحَمَّدٌ بَشَرٌ يَغْضَبُ كَمَا يَغْضَبُ الْبَشَرُ وَإِنِّي قَدِ اتَّخَذْتُ عِنْدَكَ عَهْدًا لَنْ تُخْلِفَنِيهِ فَأَيُّمَا مُؤْمِنٍ آذَيْتُهُ أَوْ سَبَبْتُهُ أَوْ جَلَدْتُهُ فَاجْعَلْهَا لَهُ كَفَّارَةً وَقُرْبَةً تُقَرِّبُهُ بِهَا إِلَيْكَ يَوْمَ الْقِيَامَةِ
Allāhumma innamā muḥammadun basharun yaghḍabu kamā yaghḍabu al-basharu wa-innī qadi āttakhadhtu ʿindaka ʿahdan lan tukhlifanīhi fa-ayyumā muʾminin ādhaytuhu aw sababtuhu aw jaladtuhu fājʿalhā lah kaffāratan waqurbatan tuqarribuhu bihā ilayka yawma al-qiyāmah
Transliteration generated from the Arabic vowel marks
The full narration
Salim, the freed slave of Nasriyyin, said:I heard Abu Huraira as saying that he heard Allah's Messenger (ﷺ) as saying: O Allah, Muhammad is a human being. I lose my temper just as human beings lose temper, and I have held a covenant with Thee which Thou wouldst not break: For a believer whom I give any trouble or invoke curse or beat, make that an expiation (of his sins and a source of) his nearness to Thee on the Day of Resurrection
Source
Ṣaḥīḥ Muslim · 6622
- Agreed upon as authentic (al-Bukhārī / Muslim)