Sahih Muslim #2601 g
The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship 45:122
Abu Huraira reported Allah's Messenger (ﷺ) as saying:
I have held covenant with Thee which Thou wouldst not break, so for any believer whom I curse or beat, make that an expiation on the Day of Resurrection.