Abu Hurairah reported,

The Messenger of Allah ﷺ saw some phlegm on the qiblah wall of the mosque. He turned to the people and said, "What is the matter with one of you who stands facing his Lord and spits in front of him? Would any of you like to be faced and spat at in his face? When one of you needs to spit, let him spit to his left, or let him do like this into his garment."Then Ismail demonstrated to me how to spit into one's garment and rub it in.

Ibn Majah 1022

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا إسمعيل ابن علية عن القاسم بن مهران عن أبي رافع

عن أبي هريرة

أن رسول الله ﷺ رأى نخامة في قبلة المسجد فأقبل على الناس فقال ما بال أحدكم يقوم مستقبله يعني ربه فيتنخع أمامه أيحب أحدكم أن يستقبل فيتنخع في وجهه إذا بزق أحدكم فليبزقن عن شماله أو ليقل هكذا في ثوبه ثم أراني إسمعيل يبزق في ثوبه ثم يدلكه

ابن ماجه 1022صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
One who is praying clearing his throat
Numbering
Darussalam 1022
Ibn Majah 1022