Jabir b. Samurah said(this is the version of the narrator "Uthman):
The Messenger of Allah (ﷺ) entered the mosque and saw there some people praying raising their hand towards the heaven. (This Is the common version: ) He said : People must stop raising their eyes to the heaven. The narrator Musaddad said: During prayer, otherwise their sight will be taken away.
Reference: Sunan Abi Dawud 912 In-book : Book 2, Hadith 523 English translation : Book 2, Hadith 912
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.