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.
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.
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."
Abu Huraira reported God’s Messenger as saying, “Famine does not consist in your getting no rain, but it consists in your getting rain and getting more rain without the earth producing anything.”