The Book of Praying for Rain (Al-Istisqa')
كتاب الاستسقاء
Chapter 15: What to say when it rains
When it rained the Messenger of Allah would say: "Allahummaj'alhu Sayyiban nafi`a. (O Allah, make it beneficial rain)."
Chapter 16: It is Makruh to attribute rain to the stars
"The Messenger of Allah (ﷺ) said: "Allah, the Mighty and Sublime, said: I have never sent down My favor to My slaves but a group of them became disbelievers who say; "The stars and by stars.'"
"It rained during the time of the Prophet (ﷺ) and he said: 'Have you nt heard what your Lord said this night? He said: I have never sent down any blessing upon My slaves but some of them become disbelievers thereby, saying: 'We have been given rain by such and such a star.' As for the one who believes in Me and praises Me for giving rain, that is the one who believes in Me and disbelieves in the stars. But the one who says: 'We have been given rain by such and such a star' he has disbelieved in Me and believed in the stars."
"The Messenger of Allah (ﷺ) said: 'If Allah (SWT) were to withhold rain from His slaves for five years and then send it, some of the people would become disbelievers, saying: "We have been given rain by the star of Al-Mijdah."
Chapter 17: Imam asking for rain to be stopped if he fears that it may cause harm
"There was no rain for a year, so some of the Muslims went to the Prophet (ﷺ) one Friday and said: 'O Messenger of Allah, there has been no rain; the land has become bare and our wealth has been destroyed.' He raised his hands, and we did not see any cloud in the sky. He stretched forth his hands until I could see the whiteness of his armpits, praying to Allah (SWT) for rain. When we finished praying Jumu'ah, even a young man whose house nearby was worried about how he would get home. That lasted for a week, then on the following Friday they said: 'O Messenger of Allah, houses have been destroyed and all travel has been ceased.' The Messenger of Allah (ﷺ) smiled at how quickly the sons of Adam become weary, and he said with his hands raised: 'O Allah, around us and not on us,' and it dispersed from Al-Madinah."
Chapter 18: Imam raising his hands when asking for rain to stop
"There was a drought during the time of the Messenger of Allah (ﷺ). While the Messenger of Allah (ﷺ) was giving the Khutbah on the minbar one Friday, a Bedouin stood up and said: 'O Messenger of Allah wealth has been destroyed and our children are hungry; pray to Allah for us.' The Messenger of Allah (ﷺ) raised his hands, and we could not see even a wisp of a cloud in the sky, but by the One in Whose hand is my soul, he did not lower (his hands) before clouds like mountains appeared, and he did not come down from his minbar before we saw the rain dripping from his beard. It rained that day and the next day, and the day after, until the following Friday. Then that Bedouin"- or he said, "Someone else"- "stood up and said: 'O Messenger of Allah, buildings have been destroyed and wealth has drowned; pray to Allah (SWT) for us. The Messenger of Allah (ﷺ) raised his hands and said: 'O Allah, around us and not on us.' He did not point in any direction but the clouds dispersed, until Al-Madinah became like a hole. And the valleys ran with water and no one came from any direction but he told us of the heavy rains."