Sayyiduna Abu Huraira (may Allah be pleased with him) narrated from the Messenger of Allah (peace and blessings be upon him), he (peace be upon him) said: "I am a human being; just as a human becomes angry, I also become angry, and I curse just as a human curses. So, if I have ever spoken harshly to any person/slave or cursed him who was not deserving of it, then (O Allah) make it a mercy for him."
Hadith Referenceمسند اسحاق بن راهويه / كتاب البر و الصلة / 770
Hadith Takhrij«مسلم ، كتاب البروالصلة ، باب من لعنه النبى صلى الله عليه وسلم الخ ، رقم : 2601 . سنن دارمي ، رقم : 2765 . مسند احمد : 390/2 .»