Muwatta Imam Malik Book of Asking for Rain, Hadith 3
Yahya related to me from Malik from Sharik ibn Abdullah ibn Abi Namir that Anas ibn Malik said, "A man came to the Messenger of Allah ﷺ and said, 'Messenger of Allah, our animals are dying and our camels are too weak to travel, so make dua to Allah.' The Messenger of Allah ﷺ made dua, and it rained on us from one jumua to the next."
Anas continued, "Then a man came to the Messenger of Allah ﷺ and said, 'Messenger of Allah, our houses have fallen down, the paths are blocked, and our flocks are dying.' The Messenger of Allah ﷺ said, 'O Allah, (only) the mountain and hill-tops, the valley bottoms, and the places where trees grow.' "
Anas added, "It cleared away from Madina like a garment being removed."
Malik said, about a man who missed the prayer of asking for rain but caught the khutba, and wished to pray in the mosque, or in his house when he returned, "He is free to do so, or not, as he wishes."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ شَرِيكِ بْنِ عَبْدِ اللَّهِ بْنِ أَبِي نَمِرٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، أَنَّهُ قَالَ جَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ هَلَكَتِ الْمَوَاشِي وَتَقَطَّعَتِ السُّبُلُ فَادْعُ اللَّهَ . فَدَعَا رَسُولُ اللَّهِ ﷺ فَمُطِرْنَا مِنَ الْجُمُعَةِ إِلَى الْجُمُعَةِ . قَالَ فَجَاءَ رَجُلٌ إِلَى رَسُولِ اللَّهِ ﷺ فَقَالَ يَا رَسُولَ اللَّهِ تَهَدَّمَتِ الْبُيُوتُ وَانْقَطَعَتِ السُّبُلُ وَهَلَكَتِ الْمَوَاشِي . فَقَالَ رَسُولُ اللَّهِ ﷺ " اللَّهُمَّ ظُهُورَ الْجِبَالِ وَالآكَامِ وَبُطُونَ الأَوْدِيَةِ وَمَنَابِتَ الشَّجَرِ " . قَالَ فَانْجَابَتْ عَنِ الْمَدِينَةِ انْجِيَابَ الثَّوْبِ .