It is narrated from Sayyiduna Anas (may Allah be pleased with him) that he (peace and blessings be upon him) was delivering the sermon on Friday when the people stood up and began to cry out: O Messenger of Allah, there is a drought of rain, the trees have turned yellow and the animals are perishing. Supplicate to Allah Almighty to give us rain to drink. So he (peace and blessings be upon him) supplicated and said: 'Allahummasqina, Allahummasqina' (O Allah, give us water to drink; O Allah, give us water to drink). Sayyiduna Anas (may Allah be pleased with him) says: By Allah, we could not see a single patch of cloud in the sky, but suddenly clouds were produced, spread out and rained. The Messenger (peace and blessings be upon him) came down from the pulpit, prayed and left, but the rain continued for the whole week. Then, when the Prophet (peace and blessings be upon him) stood to deliver the sermon, the people began to cry out: O Messenger of Allah, the houses have collapsed and the roads are cut off. So supplicate to Allah Almighty to hold it back from us. He (peace and blessings be upon him) smiled and implored: 'Allahumma hawalayna wa la 'alayna' (O Allah, around us and not upon us). The clouds cleared from Madinah and began to rain all around, but they did not rain upon Madinah, not even a drop. I looked at Madinah, and it was as if it were within a crown (with the clouds circling it).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب صلاة الاستسقاء / 6432