On it being disliked to look about in the prayer without reason

Riyad as-Salihin (The Meadows of the Righteous)

by Imam Nawawi

341. Chapter: On it being disliked to look about in the prayer without reason

1755. 'A'isha said, "I asked the Messenger of Allah, may Allah bless him and grant him peace, about looking around in the prayer and he said, 'It is one of Shaytan's ways of making off with people's prayers.'" [al-Bukhari]

1756. Anas said, "The Messenger of Allah, may Allah bless him and grant him peace, said to me, 'Beware of turning round in the prayer. Turning round in the prayer is ruinous. If you must do it, then let it be in the voluntary but not in the obligatory prayers." [at-Tirmidhi]