Anas ibn Mālik (may Allah be pleased with him) reported: A person entered the mosque on a Friday through the gate facing Dar al-Qadā’ while the Messenger of Allah (may Allah’s peace and blessings be upon him) was standing delivering the sermon. The man stood in front of the Messenger and said: "O Messenger of Allah, the livestock are dying and the roads are cut off. So supplicate to Allah for rain." The Messenger (may Allah’s peace and blessings be upon him) raised his hands and said: "O Allah, bless us with rain. O Allah, bless us with rain. O Allah, bless us with rain!" By Allah! There were no clouds in the sky and there was no house or building between us and Mount Sal‘. Then, all of a sudden, a big cloud like a shield appeared from behind it (the mountain) and when it arrived to the middle of the sky, it spread out and rained. By Allah! We could not see the sun for a week. Next Friday, a person entered through the same gate while the Messenger (may Allah’s peace and blessings be upon him) was delivering the sermon. The man stood in front of him and said: "O Messenger of Allah, the livestock are dying and the roads are cut off. So supplicate to Allah to withhold the rain." The Messenger (may Allah's peace and blessings be upon him) raised 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 trees grow." The rain stopped, and we came out walking in the sunshine.
Sharīk said: “I asked Anas whether it was the same person who had asked for rain the previous Friday, and he replied: ‘I do not know.’”
Authentic hadith -
Narrated by Bukhari & Muslim