عَنْ سَهْلِ بْنِ سَعْدٍ السَّاعِدِيِّ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ " إِنَّمَا الأَعْمَالُ بِالْخَوَاتِيمِ"
Sahl ibn Sa’d reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, the deeds are only judged by their endings.”
Source: Ṣaḥīḥ al-Bukhārī 6607