Hadith 339
Sayyiduna Muawiyah (may Allah be pleased with him) narrates: I heard the Prophet Muhammad (peace and blessings be upon him) say: "The worth of deeds depends on their ending, just like a vessel—if its upper part is clean, then the lower part will also be clean; if the upper part is dirty, then the lower part will also be dirty."