Abdullah bin Abbas reported,

A man cursed the wind in the presence of the Prophet ﷺ, so he said, "Do not curse the wind, for it is under command. Whoever curses something that does not deserve it, the curse returns upon him."

Tirmidhi 1978

Daif

حدثنا زيد بن أخزم الطائي البصري حدثنا بشر بن عمر حدثنا أبان بن يزيد عن قتادة عن أبي العالية

عن ابن عباس

أن رجلا لعن الريح عند النبي ﷺ فقال لا تلعن الريح فإنها مأمورة وإنه من لعن شيئا ليس له بأهل رجعت اللعنة عليه

الترمذي 1978ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Righteousness and maintaining ties
Chapter
Cursing
Numbering
Darussalam 1978
Tirmidhi 1978