Mishkat al-Masabih 1518
وَعَنْ أُبَيِّ بْنِ كَعْبٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: لَا تَسُبُّوا الرِّيحَ فَإِذَا رَأَيْتُمْ مَا تَكْرَهُونَ فَقُولُوا: اللَّهُمَّ إِنَّا نَسْأَلُكَ مِنْ خَيْرِ هَذِهِ الرِّيحِ وَخَيْرِ مَا فِيهَا وَخَيْرِ مَا أُمِرَتْ بِهِ وَنَعُوذُ بِكَ مِنْ شَرِّ هَذِهِ الرِّيحِ وَشَرِّ مَا فِيهَا وَشَرِّ مَا أُمِرَتْ بِهِ . رَوَاهُ التِّرْمِذِيُّ
From Ubayy ibn Kaʿb, who said: The Messenger of Allah ﷺ said: "Do not revile the wind. When you see what you dislike, say: 'O Allah, we ask You for the good of this wind, the good of what is in it, and the good of what it has been commanded with; and we seek refuge in You from the evil of this wind, the evil of what is in it, and the evil of what it has been commanded with.'" Reported by at-Tirmidhi.