If something happens to the worshipper whilst he is praying that means that he has to stop the prayer â such as if he starts a naafil prayer then the iqaamah for prayer is given â then the intention to stop the prayer is sufficient, and he should not say the tasleem, because the proper place for the tasleem is at the end of the prayer. âAli ibn Abi Taalib (may Allaah be pleased with him) said: The Prophet (peace and blessings of Alalah be upon him) said: âThe key to prayer is purification, one enters it by saying takbeer (âAllaahu akbar â Allaah is Most Great)â and one exits it by saying tasleem (âAl-salaamu aleikumâ â peace be upon youâ).â Narrated by the authors of Sunan apart from al-Nasaaâi, with a saheeh isnaad.
With regard to the one whose prayer becomes invalidated, he should stop his prayer without saying tasleem and with no intention, because his prayer has been invalidated.
From the fatwas of Shaykh âAbd al-âAzeez Aal al-Shaykh. Majallat al-Buhooth al-Islamiyyah, 61/82.