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.