It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) entered the mosque and saw phlegm (on the wall) in the direction of the qiblah, because of which signs of strong displeasure appeared on his (peace and blessings be upon him) blessed face. Then he (peace and blessings be upon him) said: "Indeed, when one of you stands for prayer, he is in reality conversing intimately with his Lord, or (he said:) his Lord is between him and the qiblah. So when one of you needs to spit, he should spit to his left, under his foot, or else do like this." And he (peace and blessings be upon him) spat into one corner of his cloak (by way of teaching) and rubbed part of it against another part.
Hadith Referenceمسند أبي يعلى الموصلي / مسند أنس بن مالك / 3853
Hadith Gradingمحدثین:إسناده صحيح على شرط الشيخين
Hadith Takhrij«حکم الحدیث مسند ابی یعلی محققاً تنسیق حسين سليم أسد - مکتبہ شاملہ :قال حسين سليم أسد: إسناده صحيح على شرط الشيخين . » «قال سعيد بن محمد السناري: صحيح» «أخرجه صحيح البخاري برقم: 238، 508، وأخرجه صحيح مسلم برقم: 551، وأخرجه سنن النسائي برقم: 308، 728، وأخرجه سنن أبي داود برقم: 389، وأخرجه سنن ابن ماجه برقم: 762، 1024، وأخرجه مسند أحمد برقم: 12653، وأخرجه سنن الدارمي برقم: 1396، وأخرجه فتح الباري برقم: 1155، وأخرجه السنن الكبرى للبيهقي برقم: 3487، وأخرجه المعجم الأوسط للطبراني برقم: 2165، مسند ابویعلیٰ ترقیم الاثری: 3841»