Sahih Muslim 132: The Rulings of the Law Concern the Outward; the Inward Is Known Only to Allah
Hazrat Usamah bin Zaid (ra) relates: The Messenger of Allah (saw) sent us on an expedition. In the morning we reached the Huruqat of Juhainah (the name of a place in the territory of the Juhainah tribe). There I overtook a man. He said: “La ilaha illallah,” but I struck him with my spear. Then this caused unease in my heart, so I mentioned it to the Prophet (saw), and the Messenger of Allah (saw) said: “Did he say La ilaha illallah and you killed him?” I submitted: “O Messenger of Allah (saw)! He said it only out of fear of the weapon.” He said: “Then why did you not cut open his heart, so that you would have known whether he said it (from his heart) or not?” He kept repeating this before me, until I wished that I had accepted Islam only on that day.
AI-translated by Islam-Today
Book 21: The Rulings of the Law Concern the Outward; the Inward Is Known Only to Allah