The people were struck by a year of drought during the time of the Messenger of Allah ﷺ. While the Messenger of Allah ﷺ was delivering the Friday sermon from the pulpit, an Arabi stood up and said, "Messenger of Allah, the livestock has perished and the children are starving. Pray to Allah for us."The Messenger of Allah ﷺ raised his hands, and we could not see a single wisp of cloud in the sky. By the One in whose hand my soul rests, he had not yet lowered them when clouds rose up like mountains. He had not stepped down from his pulpit before I saw the rain streaming down his beard. It rained on us that day, the next day, the day after, and right through to the following Friday.Then that same Arabi, or perhaps another man, stood up and said, "Messenger of Allah, the buildings are collapsing and the livestock are drowning. Pray to Allah for us."The Messenger of Allah ﷺ raised his hands and said, "O Allah, around us and not upon us." He would point with his hand toward a stretch of cloud, and it would part, until Madinah stood in a clearing like the opening of a courtyard. The valley flowed with water, and no one came in from any direction without reporting heavy rain.
أخبرنا محمود بن خالد قال حدثنا الوليد بن مسلم قال أنبأنا أبو عمرو الأوزاعي عن إسحق بن عبد الله
أصاب الناس سنة على عهد رسول الله ﷺ فبينا رسول الله ﷺ يخطب على المنبر يوم الجمعة فقام أعرابي فقال يا رسول الله هلك المال وجاع العيال فادع الله لنا فرفع رسول الله ﷺ يديه وما نرى في السماء قزعة والذي نفسي بيده ما وضعها حتى ثار سحاب أمثال الجبال ثم لم ينزل عن منبره حتى رأيت المطر يتحادر على لحيته فمطرنا يومنا ذلك ومن الغد والذي يليه حتى الجمعة الأخرى فقام ذلك الأعرابي أو قال غيره فقال يا رسول الله تهدم البناء وغرق المال فادع الله لنا فرفع رسول الله ﷺ يديه فقال اللهم حوالينا ولا علينا فما يشير بيده إلى ناحية من السحاب إلا انفرجت حتى صارت المدينة مثل الجوبة وسال الوادي ولم يجئ أحد من ناحية إلا أخبر بالجود
Bukhari narrated it in the Book of Friday Prayer, in the chapter on supplication for rain during the Friday sermon, hadith no. 933, and Muslim narrated it in the Book of the Rain Prayer, in the chapter on supplication during the rain prayer, hadith no. 9/897, from the hadith of Walid bin Muslim, transmitted through him. It is also found in Al-Kubra, hadith no. 1839.