The Prophet ﷺ, whenever he saw clouds approaching from any horizon, would leave whatever he was doing, even if he was in prayer, to face them. He would say, "O Allah, we seek refuge in You from the evil of what has been sent with these clouds."If it rained, he would say, "O Allah, make it a beneficial downpour," repeating this two or three times. And if Allah dispersed the clouds without rain falling, he would praise Allah for that.
أن النبي ﷺ كان إذا رأى سحابا مقبلا من أفق من الآفاق ترك ما هو فيه. وإن كان في صلاته حتى يستقبله: فيقول: اللهم إنا نعوذ بك من شر ما أرسل به فإن أمطر قال: اللهم سيبا نافعا مرتين أو ثلاثة-. وإن كشفه الله عز وجل ولم يمطر حمد الله على ذلك.
Narrated by Abu Dawud (5099), Ibn Majah (3889), Ahmad (25570), Bukhari in Adab al-Mufrad (686), and Nasai in Amal al-Yawm wal-Layla (914-915). Ibn Hibban graded it sahih (994). All of them transmitted it through various routes from Miqdam bin Shurayh, from his father, from Ayesha, and he mentioned it. The wording given here is that of Ibn Majah, while some of them abridged it. They said, "sayyiban haniyyan" (a beneficial, wholesome rain). Its chain is sahih.As for his saying "sayban," it means flowing rain, that is, running rain. And "sayyiban" means gushing forth, and its root letter is waw, since it comes from "saba yasubu" meaning "it descended."