It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that a man cursed the wind, so the Prophet (peace and blessings be upon him) said: "Do not curse it, for it is under (Allah's) command, and whoever curses something that does not deserve it, that curse comes back upon himself."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12702