Harith reported,

The Prophet ﷺ said in a long hadith, "Allah has commanded you to pray, so when you pray do not turn your faces away, for Allah sets His face directly toward the face of His servant during his prayer as long as he does not turn away."

Azami 2605

Sahih

عن الحارث الأشعري

أن النبي ﷺ قال في حديث طويل وإن الله أمركم بالصلاة، فإذا صليتم فلا تلتفتوا، فإن الله ينصب وجهه لوجه عبده في صلاته ما لم يلتفت.

الأعظمي 2605صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
What is prohibited and disliked in prayer
Section
Disliking turning away during prayer
Numbering
Jami al-Kamil 2605 (2nd edition)
Azami 2605