Hadith on Miracles: The Prophet prays for rain, it rains

Anas ibn Malik reported: A man came to the Prophet, peace and blessings be upon him, on Friday while he was delivering a sermon in Medina. The man said, “There is no rain, so please call upon your Lord to bless us with rain.” The Prophet looked at the sky when there were no clouds and he called upon Allah for rain. Clouds started gathering together and it rained until the valleys of Medina were flowing with water. It continued raining until the following Friday. Then, another man stood up while the Prophet was delivering a sermon and he said, “We are drowning, so please call upon your Lord to withhold it from us.” The Prophet smiled and he said three times, “O Allah, let it rain around us and not upon us.” The clouds started dispersing over Medina to the right and left, and it rained around Medina and not upon Medina. Allah showed them the miracle of his Prophet and his response to his supplication.

Source: Ṣaḥīḥ al-Bukhārī 5742

Grade: Sahih (authentic) according to Al-Bukhari

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

5742 صحيح البخاري كتاب الأدب باب التبسم والضحك