It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: I am also a human being. If I have caused harm to anyone (unintentionally) or cursed someone, let it become a means of purification and reward for that person, and a cause for my nearness on the Day of Resurrection.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 10336