From the route of Abu Dharr Jundub bin Junadah and Abu ^Abdir-Rahman Mu^adh bin Jabal, may Allah accept both of their deeds, from the Messenger of Allah, sallallahu ^alayhi wa sallam, who said: <<Be pious wherever you are. Make the good deed follow the bad, because it will erase it, and deal with the people with good manners.>> Narrated by at-Tirmidhiyy and he said this Hadith is hasan, and in some copies hasan sahih.
عَنْ أَبِي ذَرٍّ جُنْدُبِ بْنِ جُنَادَةَ، وَأَبِي عَبْدِ الرَّحْمَنِ مُعَاذِ بْنِ جَبَلٍ رَضِيَ اللَّهُ عَنْهُمَا عَنْ رَسُولِ اللَّهِ ﷺ قَالَ: ((اتَّقِ اللَّهَ حَيْثُمَا كُنْتَ، وَأَتْبعِ السَّيِّئَةَ الْحَسَنَةَ تَمْحُهَا، وَخَالِقِ النَّاسَ بِخُلُقٍ حَسَنٍ)) رَوَاهُ التِّرْمِذِيُّ وَقَالَ: حَدِيثٌ حَسَنٌ، وَفِي بَعْضِ النُّسَخِ: حَسَنٌ صَحِيحٌ