It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) said: O Allah, I am also a human being. If I have caused harm to anyone (unknowingly) or cursed anyone, then make it a means of purification and closeness for that person.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 9070