Narrated Sahl bin Sa’ad As-Sa’idi: During one of his Ghazwat, the Prophet, peace be upon him, encountered the Mushrikin, and the two armies fought. Then each of them returned to their army camps. Amongst the Muslims there was a man who would follow every single isolated pagan and strike him with his sword. It was said, “O Allah’s Messenger! None has fought so satisfactorily as so-and-so.” The Prophet, peace be upon him, said, “He is from the dwellers of the Hell-fire.”
Then a man from amongst the people said, “I will follow him and accompany him in his fast and slow movements.” The (brave) man got wounded, and wanting to die at once, he put the handle of his sword on the ground and its tip in between his chest. He then threw himself over it, committing suicide. Then the man (who was following him) returned to the Prophet, peace be upon him, and said, “I testify that you are the Messenger of Allah.” The Prophet, peace be upon him, asked, “What is this?” The man told him the whole story.
The Prophet, peace be upon him, said, “A man may do what may seem to the people as the deeds of the dwellers of Paradise, but he is of the dwellers of the Hell-fire. And a man may do what may seem to the people as the deeds of the dwellers of the Hell-fire, but he is from the dwellers of Paradise.”
(5: 518- O.B. Sahih Al-Bukhari)