Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:6093Muḥammad b. Maḥbūb > Abū ʿAwānah > Qatādah > Anas > Lī Khalīfah > Yazīd b. Zurayʿ > Saʿīd > Qatādah > Anas

A man came to the Prophet ﷺ on a Friday while he (the Prophet) was delivering a sermon at Medina, and said, "There is lack of rain, so please invoke your Lord to bless us with the rain." The Prophet ﷺ looked at the sky when no cloud could be detected. Then he invoked Allah for rain. Clouds started gathering together and it rained till the Medina valleys started flowing with water. It continued raining till the next Friday. Then that man (or some other man) stood up while the Prophet ﷺ was delivering the Friday sermon, and said, "We are drowned; Please invoke your Lord to withhold it (rain) from us" The Prophet smiled and said twice or thrice, "O Allah! Please let it rain round about us and not upon us." The clouds started dispersing over Medina to the right and to the left, and it rained round about Medina and not upon Medina. Allah showed them (the people) the miracle of His Prophet and His response to his invocation.  

البخاري:٦٠٩٣حَدَّثَنَا مُحَمَّدُ بْنُ مَحْبُوبٍ حَدَّثَنَا أَبُو عَوَانَةَ عَنْ قَتَادَةَ عَنْ أَنَسٍ وَقَالَ لِي خَلِيفَةُ حَدَّثَنَا يَزِيدُ بْنُ زُرَيْعٍ حَدَّثَنَا سَعِيدٌ عَنْ قَتَادَةَ عَنْ أَنَسٍ ؓ

أَنَّ رَجُلاً جَاءَ إِلَى النَّبِيِّ ﷺ يَوْمَ الْجُمُعَةِ وَهْوَ يَخْطُبُ بِالْمَدِينَةِ فَقَالَ قَحَطَ الْمَطَرُ فَاسْتَسْقِ رَبَّكَ فَنَظَرَ إِلَى السَّمَاءِ وَمَا نَرَى مِنْ سَحَابٍ فَاسْتَسْقَى فَنَشَأَ السَّحَابُ بَعْضُهُ إِلَى بَعْضٍ ثُمَّ مُطِرُوا حَتَّى سَالَتْ مَثَاعِبُ الْمَدِينَةِ فَمَا زَالَتْ إِلَى الْجُمُعَةِ الْمُقْبِلَةِ مَا تُقْلِعُ ثُمَّ قَامَ ذَلِكَ الرَّجُلُ أَوْ غَيْرُهُ وَالنَّبِيُّ ﷺ يَخْطُبُ فَقَالَ غَرِقْنَا فَادْعُ رَبَّكَ يَحْبِسْهَا عَنَّا فَضَحِكَ ثُمَّ قَالَ اللَّهُمَّ حَوَالَيْنَا وَلاَ عَلَيْنَا مَرَّتَيْنِ أَوْ ثَلاَثًا فَجَعَلَ السَّحَابُ يَتَصَدَّعُ عَنِ الْمَدِينَةِ يَمِينًا وَشِمَالاً يُمْطَرُ مَا حَوَالَيْنَا وَلاَ يُمْطِرُ مِنْهَا شَىْءٌ يُرِيهِمُ اللَّهُ كَرَامَةَ نَبِيِّهِ ﷺ وَإِجَابَةَ دَعْوَتِهِ  


See similar narrations below:

Collected by Aḥmad
ahmad:13743Ḥusayn Fī Tafsīr Shaybān > Qatādah > Anas b. Mālik

[Machine] A man called the Messenger of Allah ﷺ on a Friday while he was delivering a sermon to the people in the city. He said, "O Messenger of Allah, there has been a drought, the ground has dried up, and the people are suffering. Please ask your Lord to send rain to us." The Prophet ﷺ looked at the sky, and we did not see many clouds. So, he performed the prayer for rain, and the clouds started gathering and then it rained until the streets of the city were filled with water and the roads turned into rivers. And it continued like this until the next Friday, without the rain stopping. Then, this man or someone else stood up while the Prophet of Allah ﷺ was delivering a sermon and said, "O Prophet of Allah, ask Allah to stop the rain." The Prophet of Allah ﷺ smiled and said, "O Allah, let the rain fall around us and not on us." So, he prayed to his Lord, and the clouds broke apart around the city, raining heavily on its surroundings but not on the city itself.  

أحمد:١٣٧٤٣حَدَّثَنَا حُسَيْنٌ فِي تَفْسِيرِ شَيْبَانَ عَنْ قَتَادَةَ قَالَ وَحَدَّثَنَا أَنَسُ بْنُ مَالِكٍ

أَنَّ رَجُلًا نَادَى رَسُولَ اللهِ ﷺ فِي يَوْمِ الْجُمُعَةِ وَهُوَ يَخْطُبُ النَّاسَ بِالْمَدِينَةِ فَقَالَ يَا رَسُولَ اللهِ قَحَطَ الْمَطَرُ وَأَمْحَلَتِ الْأَرْضُ وَقَحَطَ النَّاسُ فَاسْتَسْقِ لَنَا رَبَّكَ فَنَظَرَ النَّبِيُّ ﷺ إِلَى السَّمَاءِ وَمَا نَرَى كَثِيرَ سَحَابٍ فَاسْتَسْقَى فَنَشَأَ السَّحَابُ بَعْضَهُ إِلَى بَعْضٍ ثُمَّ مُطِرُوا حَتَّى سَالَتْ مَثَاعِبُ الْمَدِينَةِ وَاضْطَرَدَتْ طُرُقُهَا أَنْهَارًا فَمَا زَالَتْ كَذَلِكَ إِلَى يَوْمِ الْجُمُعَةِ الْمُقْبِلَةِ مَا تُقْلِعُ ثُمَّ قَامَ ذَلِكَ الرَّجُلُ أَوْ غَيْرُهُ وَنَبِيُّ اللهِ ﷺ يَخْطُبُ فَقَالَ يَا نَبِيَّ اللهِ ادْعُ اللهَ أَنْ يَحْبِسَهَا عَنَّا فَضَحِكَ نَبِيُّ اللهِ ﷺ ثُمَّ قَالَ اللهُمَّ حَوَالَيْنَا وَلَا عَلَيْنَا فَدَعَا رَبَّهُ فَجَعَلَ السَّحَابُ يَتَصَدَّعُ عَنِ الْمَدِينَةِ يَمِينًا وَشِمَالًا يُمْطِرُ مَا حَوْلَهَا وَلَا يُمْطِرُ فِيهَا شَيْئًا