عن عائشة رضي الله عنها، قالت: سألت رسُولَ الله - صلى الله عليه وسلم - عَنِ الالتفَاتِ في الصَّلاَةِ، فَقَالَ: «هُوَ اخْتِلاَسٌ يَخْتَلِسُهُ الشَّيْطَانُ مِنْ صَلاَةِ العَبْدِ». رواه البخاري.
It is narrated from Sayyidah Aishah (may Allah be pleased with her), who said: I asked the Messenger of Allah (peace and blessings be upon him) about looking (here and there) during prayer, and he (peace and blessings be upon him) said: "It is a snatching that Satan snatches from the prayer of the servant."
(Narrated by al-Bukhari)
وعن أنس - رضي الله عنه - قَالَ: قَالَ رسولُ اللهِ - صلى الله عليه وسلم: «إيَّاكَ والالتِفَاتَ فِي الصَّلاَةِ، فَإنَّ الالتفَاتَ في الصَّلاَةِ هَلَكَةٌ، فَإنْ كَانَ لاَ بُدَّ، فَفِي التَّطَوُّعِ لاَ في الفَريضَةِ». رواه الترمذي، وقال: «حديث حسن صحيح».
It is narrated from Sayyiduna Anas (may Allah be pleased with him), who said that the Messenger of Allah (peace and blessings be upon him) said: "Beware of turning (here and there) in prayer, for turning in prayer is ruin. Then if (doing so) is truly unavoidable, (let it be) in voluntary prayer, not in the obligatory."
(Narrated by al-Tirmidhi, and he said: a hasan sahih hadith)