Abu Saeed Khudri reported,

The Prophet ﷺ loved palm-branch sticks and would always hold one in his hand. He entered the mosque and saw mucus on the qiblah wall of the mosque, so he scraped it off. Then he turned to the people in anger and said, "Would any of you be pleased if someone spat in his face? When one of you faces the qiblah, he is only facing his Lord عز وجل, and the angel is on his right. So let him not spit to his right, nor in front of him toward the qiblah. Let him spit to his left or beneath his foot. If something forces him to act quickly, then let him do like this." Ibn Ajlan demonstrated it for us, that he should spit into his garment and then fold part of it over the other.

Azami 3123

Hasan

عن أبي سعيد الخدري

أن النبي ﷺ كان يحب العراجين ولا يزال في يده منها، فدخل المسجد فرأى نخامة في قبلة المسجد فحكها، ثم أقبل على الناس مغضبا فقال: أيسر أحدكم أن يبصق في وجهه؟ إن أحدكم إذا استقبل القبلة فإنما يستقبل ربه عز وجل، والملك عن يمينه، فلا يتفل عن يمينه، ولا في قبلته. وليبصق عن يساره أو تحت قدمه، فإن عجل به أمر فليقل هكذا. ووصف لنا ابن عجلان ذلك: أن يتفل في ثوبه ثم يرد بعضه على بعض.

الأعظمي 3123حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Mosques
Section
Prohibition of spitting in the masjid and towards the qibla
Numbering
Jami al-Kamil 3123 (2nd edition)
Azami 3123