O Allah, I am a human being and for any person amongst Muslims upon whom I hurl malediction or invoke curse or give him whipping make it a source of purity and mercy. (Using translation from Muslim 2601a)
قَالَ رَسُولُ اللهِ ﷺ اللهُمَّ أَيُّمَا مُؤْمِنٍ سَبَبْتُهُ أَوْ لَعَنْتُهُ أَوْ جَلَدْتُهُ فَاجْعَلْهَا لَهُ زَكَاةً وَأَجْرًا