Language:
كتاب الاستسقاء
15  
Invoking Allah for Rain (Istisqaa)
(9)
Chapter: Whoever To invoke Allah for rain in the Jumu'ah prayer
(9)
باب مَنِ اكْتَفَى بِصَلاَةِ الْجُمُعَةِ فِي الاِسْتِسْقَاءِ
Sahih al-Bukhari 1016

Narrated Anas:

A man came to the Prophet (p.b.u.h) and said, "Livestock are destroyed and the roads are cut off." So Allah's Messenger (ﷺ) invoked Allah for rain and it rained from that Friday till the next Friday. The same person came again and said, "Houses have collapsed, roads are cut off, and the livestock are destroyed. Please pray to Allah to withhold the rain." Allah's Messenger (ﷺ) (stood up and) said, "O Allah! (Let it rain) on the plateaus, on the hills, 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 1016
In-book reference : Book 15, Hadith 11
USC-MSA web (English) reference : Vol. 2, Book 17, Hadith 129
  (deprecated numbering scheme)