Sayyiduna Ka'b bin Malik (may Allah be pleased with him) narrates this saying of the Prophet (peace and blessings be upon him): "People will either desist from raising their gaze toward the sky (during the prayer), or their sight will be snatched away."
Al-Tabarani recorded it in al-Mu'jam al-Kabir; its chain contains Abd al-Aziz bin Ubaydullah bin Hamzah, who is da'if (weak).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الصلاة / 2448