Abdullah bin Umar reported,

While the Prophet ﷺ was praying, he noticed some phlegm on the wall of the mosque facing the qiblah. He scraped it off with his hand, visibly angered. Then he said, "When any of you is in prayer, Allah is directly before his face. So let none of you spit in front of himself during prayer."

Bukhari 6111

Sahih

حدثنا موسى بن إسماعيل حدثنا جويرية عن نافع

عن عبد الله رضي الله عنه قال

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

البخاري 6111صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
What is permissible of anger and severity for the sake of Allah
Numbering
Darussalam 6111
Bukhari 6111