English translation
1021. Narrated Anas رضي الله عنه: Allāh's Messenger ﷺ was delivering the Khutba (religious talk) on a Friday when the people stood up, shouted and said, "O Allāh's Messenger! There is no rain (drought), the trees have dried and the livestock are destroyed; please invoke Allāh for rain.” So Allāh’s Messenger ﷺ said twice, “O Allāh! Bless us with rain.” By Allāh, there was no trace of cloud in the sky and suddenly the sky became overcast with clouds and it started raining. The Prophet ﷺ came down the pulpit and offered the prayer. When he came back from the prayer (to his house) it was raining and it rained continuously till the next Friday. When the Prophet ﷺ started delivering the Friday Khutba, the people started shouting and said to him, “The houses have collapsed and the roads are cut off; so please invoke Allāh to withhold the rain.” So, the Prophet ﷺ smiled and said, “O Allāh! Round about us and not on us.” The sky became clear over Al-Madīna; but it kept on raining over the outskirts (of Al-Madīna) and not a single drop of rain fell over Al-Madīna. I looked towards the sky which was as bright and clear as a crown.
