Abu ‘Ubaydah reported: Ibn Mas’ud, may Allah be pleased with him, said, “If you see a man among you seduced into a sin, then neither supplicate to Allah against him nor curse him. Rather, supplicate for Allah to save him and to accept his repentance. When we saw a man do good at the end of his life, we would hope for him. When we saw a man do evil at the end of his life, we would fear for him.”
Source: al-Tawbah li-Ibn Abī Dunyā 114
عَنْ أَبِي عُبَيْدَةَ عَنِ ابْنِ مَسْعُودٍ رَضِيَ اللَّهُ عَنْهُ قَالَ إِذَا رَأَيْتُمُ الرَّجُلَ مِنْكُمْ قَارَفَ ذَنْبًا فَلا تَدْعُوا اللَّهَ عَلَيْهِ وَلَا تَسُبُّوهُ وَلَكِنِ ادْعُوا اللَّهَ أَنْ يُعَافِيَهُ وَأَنْ يَتُوبَ عَلَيْهِ فَإِنَّا كُنَّا إِذَا رَأَيْنَا الرَّجُلَ خُتِمَ لَهُ بِخَيْرٍ رَجَوْنَا لَهُ وَإِذَا خُتِمَ لَهُ بِشَرٍّ خِفْنَا عَلَيْهِ
1/99 التوبة لابن أبي الدنيا النصيحة لا الفضيحة