Islamic Ruling on Looking Around During Salah in Fiqh Shafi‘i
In Shafi‘i fiqh, it is Sunnah to keep the eyes on the place of سجود, and it is disliked to look around or raise the eyes toward the sky without need.

According to Shafi‘i fiqh, keeping the gaze on the place of سجود in prayer is Sunnah.
It is disliked to look around without any need. It is also disliked to raise the eyes toward the sky during prayer.
As mentioned in Minhaj al Talibin:
قلت يكره الالتفات لا لحاجة و رفع بصره السماء
This Islamic ruling is also supported by references from Sahih al Bukhari 750 and 751.
This fatwa clearly explains that in prayer, a person should focus and avoid unnecessary movements of the eyes. Islamic scholars state that looking around or raising the gaze upward without need is makruh.
The short URL of the present article is: https://english.fikrokhabar.com/cq18