Language:
كتاب الاستسقاء
15  
Invoking Allah for Rain (Istisqaa)
(10)
Chapter: Invocation (for stoppage of rain)
(10)
باب الدُّعَاءِ إِذَا تَقَطَّعَتِ السُّبُلُ مِنْ كَثْرَةِ الْمَطَرِ
Sahih al-Bukhari 1017

Narrated Anas bin Malik:

A man came to Allah's Messenger (ﷺ) and said, "O Allah's Messenger (ﷺ)! Livestock are destroyed and the roads are cut off. So please invoke Allah." So Allah's Messenger (ﷺ) prayed and it rained from that Friday to the next Friday. Then he came to Allah's Messenger (ﷺ) I and said, "O Allah's Messenger (ﷺ)! Houses have collapsed, roads are cut off and the livestock are destroyed." So Allah's Messenger (ﷺ) (p.b.u.h) prayed, "O Allah! (Let it rain) on the tops of mountains, on the plateaus, in the valleys and over the places where trees grow." So the clouds cleared away from Medina as clothes are taken off.

حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنْ شَرِيكِ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي نَمِرٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ، هَلَكَتِ الْمَوَاشِي وَانْقَطَعَتِ السُّبُلُ، فَادْعُ اللَّهَ، فَدَعَا رَسُولُ اللَّهِ صلى الله عليه وسلم فَمُطِرُوا مِنْ جُمُعَةٍ إِلَى جُمُعَةٍ، فَجَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ صلى الله عليه وسلم فَقَالَ يَا رَسُولَ اللَّهِ، تَهَدَّمَتِ الْبُيُوتُ وَتَقَطَّعَتِ السُّبُلُ وَهَلَكَتِ الْمَوَاشِي‏.‏ فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ اللَّهُمَّ عَلَى رُءُوسِ الْجِبَالِ وَالآكَامِ وَبُطُونِ الأَوْدِيَةِ وَمَنَابِتِ الشَّجَرِ ‏"‏‏.‏ فَانْجَابَتْ عَنِ الْمَدِينَةِ انْجِيَابَ الثَّوْبِ‏.‏
Reference : Sahih al-Bukhari 1017
In-book reference : Book 15, Hadith 12
USC-MSA web (English) reference : Vol. 2, Book 17, Hadith 130
  (deprecated numbering scheme)