Narrated Sharik bin Abdullah bin Abi Namir: I heard Anas bin Malik saying that (on a Friday) a person entered the main mosque while Allah’s Messenger, peace be upon him, was delivering the Khutbah. And (he) requested (the Prophet, peace be upon him, to invoke Allah) for rain, repeating it many times.” In this quotation (it is said), “We did not see the sun for a week.” [Anas added, Allah’s Messenger, peace be upon him, raised both his hands and said, “O Allah! Bless us with rain! O Allah! Bless us with rain! O Allah! Bless us with rain!” Anas added, “By Allah, we could not see any trace of cloud in the sky and there was no building or a house between us and (the mountains of) Sila.” Anas added, “A heavy cloud like a shield appeared from the sky, it spread and then rained.”]

Anas further said that by (next Friday) a person entered through the same gate and at that time Allah’s Messenger, peace be upon him, was delivering the Friday Khutbah. The man stood in front of him and said, “O Allah’s Messenger! The livestock are dying and the roads are cut off, please invoke Allah to withhold rain.” Anas added that Allah’s Messenger raised both his hands and said, “O Allah! Round about us and not on us. O Allah! On the plateaus, on the mountains, on the hills, in the valleys and on the places where the trees grow.” So, the rain stopped and we came out walking in the sun.
[2: 126- O.B. Sahih Al-Bukhari)