It is narrated from Ibn Abbas (may Allah be pleased with him) that he said: Whenever a strong wind blew, the Prophet (ﷺ) would sit on his knees and recite: "O Allah! Make it a mercy, not a punishment. O Allah! Make it a means of comfort, not a calamity." Ibn Abbas (may Allah be pleased with him) says: It is in the Book of Allah: And We sent upon them a violent, raging wind. (__QUR_54_19__) And We sent upon them a barren wind. (__QUR_51_41__) And We send the laden winds. (__QUR_15_22__) And He sends the winds as glad tidings. (__QUR_30_46__)
Hadith Referenceمسند الإمام الشافعي / كتاب العيدين والأضاحي والاستسقاء / 537
Hadith Takhrijاسناده ضعيف لضعف من لا يتهمه الشافعي وهو ابراهيم بن محمد : اخرجه البيهقي في المعرفة السنن والآثار (2029) وابو يعلى (2456)۔