It was narrated from Thabit that Anas said:
The Prophet (ﷺ) was delivering the Khutbah one Friday when the people stood up and shouted: 'O Prophet of Allah! There has been no rain and the animals have died. Pray to Allah (SWT) to send us rain.' He said: 'O Allah, send us rain; O Allah, send us rain.' By Allah (SWT), we could not see even a wisp of a cloud in the sky, then a cloud appeared and grew, and it rained. The Messenger of Allah (ﷺ) came down and prayed, and the people departed, and it continued to rain until the following Friday. When the Messenger of Allah (ﷺ) stood up to deliver the Khutbah, they called out to him and said: 'O Prophet of Allah, the houses are destroyed and the routes are cut off. Pray to Allah to take it away from us.' The Messenger of Allah (ﷺ) smiled and said: 'O Allah, around us and not on us!' Then is dispersed from Al-Madinah and rain fell around Al-Madinah but not a single drop fell on Al-Madinah. I looked, and it was in something like a ring.