It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that a man cursed the wind in the presence of the Messenger of Allah (peace and blessings be upon him), so the Messenger of Allah (peace and blessings be upon him) said: "Do not curse it, for it is under the command (of Allah); and whoever curses something that does not deserve to be cursed, the curse returns to him."
Imam Abu Dawud (may Allah have mercy on him) narrated it via Muslim bin Ibrahim from Aban bin Yazid.
Also, Imam Abu Dawud and Imam al-Tirmidhi (may Allah have mercy on them both) both narrated it from Zayd bin Akhzam, and Imam al-Tirmidhi (may Allah have mercy on him) said: "This hadith is gharib; we do not know of anyone besides Bishr who narrated it with a connected chain (as marfu')."
I (the author) say: However, Muslim bin Ibrahim did not narrate it as marfu' (attributed to the Prophet); rather, he took it only as far as Abu al-Aliyah (may Allah have mercy on him).
That is, among some of its chains there is a narrator who has been criticised, so it serves as a supporting witness (shahid) for the other narration.
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