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."

Azami 14959

Sahih

عن عبد الله بن عباس

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

الأعظمي 14959صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Vices of character
Section
Condemnation of cursing
Numbering
Jami al-Kamil 14959 (2nd edition)
Azami 14959