Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) narrates: A man cursed the wind in the presence of the Prophet Muhammad (peace be upon him), so the Prophet (peace be upon him) said: Do not curse the wind because it is under command. Whenever a person curses something that is not deserving of a curse, that curse returns to the one who uttered it.
Hadith Referenceصحیح ابن حبان / كتاب الحظر والإباحة / 5745
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (528).فضيلة الشيخ العلّامة شُعيب الأرناؤوطNull