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.”