Riyad as-Salihin 397: On Judging People in respect of their Overt Conduct
Jundub ibn Abdullah relates that the Holy Prophet despatched a Muslim force against a pagan community and the two forces met in combat. One of the pagans would decide to go for a Muslim and advancing upon him would kill him. One of the Muslims, and it was said among us that it was Usamah ibn Zaid, was on the look out to take him at a disadvantage. When he raised his sword over him, the man called out: There is none worthy of worship save Allah. But the Muslim killed him. When the news of the combat reached the Holy Prophet he was also informed of this incident. He sent for the Muslim and inquired from him: Why did you kill him? He said: Messenger of Allah (saw), he created confusion among the Muslims and killed several of them, So and So, So and So, etc. I advanced upon him and when he saw my sword he exclaimed: There is none worthy of worship save Allah. The Holy Prophet asked: Did you kill him? He said: Yes. The Holy Prophet said: When the Day of Judgment comes, what will you do to his: There is none worthy of worship save Allah? He said: Messenger of Allah (saw), pray for forgiveness for me. The Holy Prophet kept on repeating without any change: What will you do to his: There is none worthy of worship save Allah, when the Day of Judgment comes?