Tamim bin Tarafah narrates from Sayyiduna Jabir bin Samurah (may Allah be pleased with him): The Messenger of Allah (peace and blessings be upon him) came to them while they were raising their gazes, and he said: "Some people must certainly stop raising their gazes to the sky in prayer, or else their gazes will not return to them."
Hadith Referenceالمعجم الكبير للطبراني / باب الجيم / 1805