Hadith 245

Riyad as-Salihin

Book 17: The Book of the Prohibited actions

Chapter 341

Undesirability of Glancing in one Direction of the other during Prayer

باب كراهة الالتفات في الصلاة لغير عذر

Riyad as-Salihin 1755
عن عائشة رضي الله عنها قالت‏:‏ سألت رسول الله صلى الله عليه وسلم عن الالتفات في الصلاة فقال‏:‏ ‏ ‏ ‏(‏‏(‏رواه البخاري‏)‏‏)‏‏.‏
"‏هو اختلاس يختلسه الشيطان من صلاة العبد‏"
'Aishah (May Allah be pleased with her) said:

I asked the Messenger of Allah (ﷺ) about random looks in Salat (prayer), and he replied, "It is something which Satan snatches from the slave's Salat."[Al-Bukhari].