It is narrated from Urwah bin Zubair (may Allah be pleased with him) that he said: When any of you sees lightning or rain, he should not point towards it, rather he should abundantly mention its attributes.
Hadith Referenceمسند الإمام الشافعي / كتاب العيدين والأضاحي والاستسقاء / 521
Hadith Takhrijاسناده ضعیف لضعف، من لا يتهمه الشافعي وهو ابراهيم بن محمد : اخرجه البيهقي في المعرفة السنن والآثار (2034) ۔ وعبد الرزاق (4917)۔