Sahih al-Bukhari 1017
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
اللَّهُمَّ عَلَى رُءُوسِ الْجِبَالِ وَالآكَامِ وَبُطُونِ الأَوْدِيَةِ وَمَنَابِتِ الشَّجَرِ "
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 (ﷺ) 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.
Full reference and source
Sahih al-Bukhari 1017 In-book : Book 15, Hadith 12 USC-MSA web (English) : Vol. 2, Book 17, Hadith 130 (deprecated)
View source on Sunnah.com (opens in a new tab)