Sahih al-Bukhari, Book 59, Hadith 100 (In-Book)

Narrated `Aisha: I asked the Prophet about one's looking here and there during the prayer. He replied, "It is what Satan steals from the prayer of any one of you."

حَدَّثَنَا الْحَسَنُ بْنُ الرَّبِيعِ، حَدَّثَنَا أَبُو الأَحْوَصِ، عَنْ أَشْعَثَ، عَنْ أَبِيهِ، عَنْ مَسْرُوقٍ، قَالَ قَالَتْ عَائِشَةُ ـ رضى الله عنها ـ سَأَلْتُ النَّبِيَّ صلى الله عليه وسلم عَنِ الْتِفَاتِ الرَّجُلِ فِي الصَّلاَةِ‏.‏ فَقَالَ ‏ "‏ هُوَ اخْتِلاَسٌ يَخْتَلِسُ الشَّيْطَانُ مِنْ صَلاَةِ أَحَدِكُمْ ‏" ‏‏.‏

sunnah.com