كتاب صلاة المسافرين وقصرها
6  
The Book of Prayer - Travellers
(3)
Chapter: Praying in dwellings when it is raining
(3)
باب الصَّلاَةِ فِي الرحَالِ فِي الْمَطَرِ ‏‏
Sahih Muslim 699 a

'Abdullah b. 'Abbas reported that he said to the Mu'adhdhin on a rainy day:

When you have announced" I testify that there is no god but Allah; I testify that Muhammad is the Messenger of Allah," do not say:" Come to the prayer," but make this announcement:" Say prayer in your houses." He (the narrator) said that the people disapproved of it. Ibn 'Abbas said: Are you astonished at it? He (the Holy Prophet), who is better than I, did it. Jumu'a prayer is no doubt obligatory, but I do not like that I should (force you) to come out and walk in mud and slippery ground.
وَحَدَّثَنِي عَلِيُّ بْنُ حُجْرٍ السَّعْدِيُّ، حَدَّثَنَا إِسْمَاعِيلُ، عَنْ عَبْدِ الْحَمِيدِ، صَاحِبِ الزِّيَادِيِّ عَنْ عَبْدِ اللَّهِ بْنِ الْحَارِثِ، عَنْ عَبْدِ اللَّهِ بْنِ عَبَّاسٍ، أَنَّهُ قَالَ لِمُؤَذِّنِهِ فِي يَوْمٍ مَطِيرٍ إِذَا قُلْتَ أَشْهَدُ أَنْ لاَ إِلَهَ إِلاَّ اللَّهُ أَشْهَدُ أَنَّ مُحَمَّدًا رَسُولُ اللَّهِ فَلاَ تَقُلْ حَىَّ عَلَى الصَّلاَةِ قُلْ صَلُّوا فِي بُيُوتِكُمْ - قَالَ - فَكَأَنَّ النَّاسَ اسْتَنْكَرُوا ذَاكَ فَقَالَ أَتَعْجَبُونَ مِنْ ذَا قَدْ فَعَلَ ذَا مَنْ هُوَ خَيْرٌ مِنِّي إِنَّ الْجُمُعَةَ عَزْمَةٌ وَإِنِّي كَرِهْتُ أَنْ أُحْرِجَكُمْ فَتَمْشُوا فِي الطِّينِ وَالدَّحْضِ ‏.‏
Reference : Sahih Muslim 699a
In-book reference : Book 6, Hadith 35
USC-MSA web (English) reference : Book 4, Hadith 1491
  (deprecated numbering scheme)