Narrated Ubayy b. Ka'b reported God’s Messenger as saying:
Do not curse the wind, but when you see what you dislike say, "O God, we ask Thee for some of the good in this wind, in what it contains and in what it has been commanded to do; and we seek refuge in Thee from the evil in this wind, in what it contains and in what it has been commanded to do."
Ibn ‘Abbas told how the Prophet said, when a man cursed the wind in his presence, "Do not curse the wind, for it is under command; if anyone curses a thing which does not deserve it, the curse will return on himself."
Tirmidhi transmitted it and said this is a gharib tradition.
No wind ever blew without the Prophet getting down on his knees and saying, "O God, make it a blessing and do not make it a punishment. O God, make it to be winds and do not make it a single wind.” Ibn ‘Abbas remarked that the Book of God most high contains these words, "We sent upon them a furious wind;"1 "We sent upon them the devastating wind;"2 "And We sent the winds fertilising;"3 and "We sent the winds as heralds of glad tidings."4
1. Al-Qur’an; 41:16.
2. Al-Qur’an; 51:41.
3. Al-Qur’an; 15:22.
4. Cf. Al-Qur an; 30:46. The quotation is not quite accurate. The quotations are meant to show that when 'wind’ is used without qualification in the Qur’an it indicates punishment, but the use of 'winds without qualification indicates blessing.
Shafi'i and Baihaqi, in ad-da'awat al-kabir, transmitted it.
Abu Huraira told of his hearing God’s Messenger say, “The wind comes from God’s mercy bringing blessing and punishment, so do not revile it, but ask God for some of its good and seek refuge in Him from its evil."
Shafi'i, Abu Dawud, Ibn Majah and Baihaqi, in ad- da'awat al-kabir, transmitted it.