Ubayy bin Kaab reported,

The Messenger of Allah ﷺ said, "Do not curse the wind. When you see something in it that you dislike, say, 'O Allah, we ask You for the good of this wind, the good within it, and the good of what it has been commanded to do, and we seek refuge in You from the evil of this wind, the evil within it, and the evil of what it has been commanded to do.'"

Azami 11268

Hasan

عن أبي بن كعب قال

قال رسول الله ﷺ: لا تسبوا الريح فإذا رأيتم ما تكرهون فقولوا: اللهم إنا نسألك من خير هذه الريح، وخير ما فيها، وخير ما أمرت به، ونعوذ بك من شر هذه الريح، وشر ما فيها، وشر ما أمرت به.

الأعظمي 11268حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for various occasions
Section
What is said when the wind blows
Numbering
Jami al-Kamil 11268 (2nd edition)
Azami 11268