I asked the Prophet (ﷺ) about one's looking here and there during the prayer. He replied…

Sahih al-Bukhari Book 59 Hadith 100

Sahih al-Bukhari #3291

Beginning of Creation 59:100

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."

Chapter: The characteristics of Iblis (Satan) and his soldiers

Grade: Sahih