´'Ibn 'Abbas narrated that a man cursed the wind in the presence of the Prophet, so he said:` "Do not curse the wind, for it is merely doing as ordered , and whoever curses something undeservingly, then the curse returns upon him."
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
Some have also declared this narration to be authentic; therefore, it is not permissible to curse Allah’s creation except those whom Allah and His Messenger (sallallahu alayhi wa sallam) have cursed.
For example: the disbelievers, the wrongdoers, the liars, and so on.
As is mentioned in the supplication of Qunoot Nazilah: (اللَّهُمَّ الْعَنِ الْكَفَرَةَ أَهْلَ الْكِتَابِ الَّذِينَ يُكَذِّبُونَ رُسُلَكَ ، وَيُقَاتِلُونَ أَوْلِيَاءَكَ) “O Allah, curse the disbelievers from among the People of the Book who deny Your messengers and fight Your friends.”
“O Allah, send Your curse upon those disbelievers who hinder from Your path, deny Your messengers, and fight Your allies.”
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 4908