It is permissible to pray at one‘s dwelling during rain or if there is a genuine excuse
باب الرُّخْصَةِ فِي الْمَطَرِ وَالْعِلَّةِ أَنْ يُصَلِّيَ فِي رَحْلِهِ
Sahih al-Bukhari, Book of Call to Prayers (Adhaan)(view book)
Narrated Nafi':
Once on a very cold and stormy night, Ibn 'Umar pronounced the Adhan for the prayer and then said, "Pray in your homes." He (Ibn 'Umar) added. "On very cold and rainy nights Allah's Apostle used to order the Mu'adhdhin to say, 'Pray in your homes.' "
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يُوسُفَ، قَالَ أَخْبَرَنَا مَالِكٌ، عَنْ نَافِعٍ، أَنَّ ابْنَ عُمَرَ، أَذَّنَ بِالصَّلاَةِ فِي لَيْلَةٍ ذَاتِ بَرْدٍ وَرِيحٍ ثُمَّ قَالَ أَلاَ صَلُّوا فِي الرِّحَالِ. ثُمَّ قَالَ إِنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَأْمُرُ الْمُؤَذِّنَ إِذَا كَانَتْ لَيْلَةٌ ذَاتُ بَرْدٍ وَمَطَرٍ يَقُولُ أَلاَ صَلُّوا فِي الرِّحَالِ.
Classification
Narrated Mahmuid bin Rabi' Al-Ansari:
'Itban bin Malik used to lead his people (tribe) in prayer and was a blind man, he said to Allah's Apostle , "O Allah's Apostle! At times it is dark and flood water is flowing (in the valley) and I am blind man, so please pray at a place in my house so that I can take it as a Musalla (praying place)." So Allah's Apostle went to his house and said, "Where do you like me to pray?" 'Itban pointed to a place in his house and Allah's Apostle, offered the prayer there.
حَدَّثَنَا إِسْمَاعِيلُ، قَالَ حَدَّثَنِي مَالِكٌ، عَنِ ابْنِ شِهَابٍ، عَنْ مَحْمُودِ بْنِ الرَّبِيعِ الأَنْصَارِيِّ، أَنَّ عِتْبَانَ بْنَ مَالِكٍ، كَانَ يَؤُمُّ قَوْمَهُ وَهْوَ أَعْمَى، وَأَنَّهُ قَالَ لِرَسُولِ اللَّهِ ﷺ يَا رَسُولَ اللَّهِ، إِنَّهَا تَكُونُ الظُّلْمَةُ وَالسَّيْلُ وَأَنَا رَجُلٌ ضَرِيرُ الْبَصَرِ، فَصَلِّ يَا رَسُولَ اللَّهِ فِي بَيْتِي مَكَانًا أَتَّخِذُهُ مُصَلًّى، فَجَاءَهُ رَسُولُ اللَّهِ ﷺ فَقَالَ " أَيْنَ تُحِبُّ أَنْ أُصَلِّيَ ". فَأَشَارَ إِلَى مَكَانٍ مِنَ الْبَيْتِ، فَصَلَّى فِيهِ رَسُولُ اللَّهِ ﷺ.