Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) said: "When one of you commits an offence liable to a hadd (prescribed punishment), do not invoke curses against him, for in that way you will be helping Satan; rather, supplicate to Allah that He accepts his repentance and has mercy on him."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 8541