Mishkat al-Masabih
Mishkat al-Masabih 83
Arabic hadith text
وَعَن سهل بن سَعِيدٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِنَّ الْعَبْدَ لَيَعْمَلُ عَمَلَ أَهْلِ النَّارِ وَإِنَّهُ مِنْ أَهْلِ الْجَنَّةِ وَيَعْمَلُ عَمَلَ أَهْلِ الْجنَّة وَإنَّهُ من أهل النَّار وَإِنَّمَا الْعمَّال بالخواتيم»
Translation
Sahl ibn Saʿd reported that the Messenger of God said, “A person may do the deeds of the people of the Fire while being one of the people of Paradise, and may do the deeds of the people of Paradise while being one of the people of the Fire. Deeds are judged by their endings.”
Translation notes
الخواتيم literally refers to endings or conclusions; the rendering “Deeds are judged by their endings” conveys the Arabic wording without adding an explicit doctrine.