´It was narrated that Tariq bin 'Abdullah Al-Muharibi said:` 'When you are praying, do not spit to the front or to your right. Spit behind you or to your left if there is no one there, otherwise do this.' And he spat beneath his foot and rubbed it.'"
Related hadith on this topic
Explanation & Benefits
Maulana Ataullah Sajid
Benefits and Issues:
➊
Spitting in front during prayer is contrary to proper etiquette.
The Messenger of Allah (sallallahu alayhi wa sallam) expressed strong displeasure regarding this.
See: (Sunan Ibn Majah, Al-Masajid wal-Jama'at, Chapter: Dislike of Spitting in the Mosque, Hadith: 761 to 764)
➋
The right side is also a direction of respect, so one should not spit in that direction either.
If another worshipper is standing on the left side, then one should also avoid spitting in that direction; if there is no one there, then spitting is permissible.
➌
In the mosque, spitting to the left or under one’s foot is permissible in the case where the ground of the mosque is of such a type that it can absorb moisture; otherwise, it is not permissible to pollute the mosque.
Especially when one is praying on a mat or carpet, it is not permissible under any circumstance to make it dirty.
In such a case, a handkerchief should be used, as is clarified in the following hadith.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 1021