when Arab tribes agreed to harass the Prophet, he (S) prayed against them to restrain rain for seven years from the tribe of Mudhir. A dreadful famine was the consequence of this as happened in the time of Prophet Yusuf (a.s.). So there was no rain for seven years. There was a terrible drought in Medina. A Bedouin came to the Prophet and said that their trees were dried up and there was no grass.
There was no milk in the udders of quadrupeds and with women, and the animals had perished. The Holy Prophet (S) went to the pulpit, praised and glorified the Almighty and beseeched for rain. It began to rain and continued for a week. It rained so heavily that people of Medina complained that they would drown and their houses would collapse.
The Holy Prophet (S) gestured to the heavens and said: O Allah, let there be rain in the surrounding areas and there should not be rain in this town. Wherever he indicated, the clouds moved to that place and there was no rain in Medina. This continued for a month. The Holy Prophet (S) said if His Eminence, Abu Talib has been alive at this time he would have been highly pleased at this.