Book 12: If the people request the Imam to invoke Allah for rain, the Imam should not refuse
Sahih al-Bukhari
Sahih al-Bukhari 1019
Abdullah bin Yusuf narrated to us, he said: Malik told us. He narrated from Sharik bin Abdullah bin Abi Namir, Sharik from Hazrat Anas bin Malik (ra), that he said: A man came to the Messenger of Allah (saw) and said: O Messenger of Allah (saw)! The livestock have died and the roads have been cut off. Pray to Allah. At this he prayed to Allah, the Exalted, and it kept raining upon us from one Friday to the next. Then a man came to the Prophet (saw). He said: O Messenger of Allah (saw)! The houses have collapsed, the roads have been cut off and the livestock have died. The Messenger of Allah (saw) prayed: “O Allah! Send down rain on the backs of the mountains and the hillocks, in the beds of the valleys and on the places where trees grow.” So the clouds parted from Medina like a garment being torn apart.
AI-translated by Islam-Today