Abu Dharr (may Allah be pleased with him) narrated that the Messenger of Allah (may the peace and blessings of Allah be upon him) had said:

Fear Allah wherever you are, and perform good deeds to obliterate previous bad actions, the former will wipe out the latter, and behave decently towards people.

(Reported by Al-Tirmidhi)