وعن ابْنِ عَبَّاسٍ أَنَّ رَجُلاً لَعَنَ الرِّيحَ عِنْدَ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فَقَالَ لَا تَلْعَنُوا الرِّيحَ فَإِنَّهَا مَاْمُورَةٌ وَإِنَّهُ مَنْ لَعَنَ شَيْئاً لَيْسَ لَهُ بِأَهْلِ رَجَعَتِ اللَّعْنَةُ عَلَيْهِ(مشکوٰۃ المصابیح)
Translation
Hazrat Ibn Abbas narrates that once a person was cursing the wind in front of the Holy Prophet (ﷺ), so he (ﷺ) said: Do not curse the wind because it is commanded by God (for mercy or punishment), and the person who curses something that is not deserving of the curse, then that curse returns to the one who cursed. (Tawdehat Sharh Mishkat/Vol: 3/Page: 210)