"I asked the Messenger of Allah (ﷺ) about looking here and there during prayer. He said: 'That is something that the Shaitan snatches from one's prayer.'"
Sunan an-Nasa'i Book 13, Hadith 18