Ayesha reported,

Whenever the Prophet ﷺ saw a cloud approaching from any horizon, he would leave whatever he was doing, even if he was in prayer, until he faced it and said, "O Allah, we seek refuge in You from the evil of what has been sent with it."If it rained, he would say, "O Allah, make it a beneficial downpour," repeating it two or three times.And if Allah عز وجل dispersed it without rain, he would praise Allah for that.

Ibn Majah 3889

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا يزيد بن المقدام بن شريح عن أبيه المقدام عن أبيه أن

عائشة أخبرته

أن النبي ﷺ كان إذا رأى سحابا مقبلا من أفق من الآفاق ترك ما هو فيه وإن كان في صلاته حتى يستقبله فيقول اللهم إنا نعوذ بك من شر ما أرسل به فإن أمطر قال اللهم سيبا نافعا مرتين أو ثلاثة وإن كشفه الله عز وجل ولم يمطر حمد الله على ذلك

ابن ماجه 3889صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Supplication
Chapter
What a man supplicates when he sees clouds and rain
Numbering
Darussalam 3889
Ibn Majah 3889