Ibn ‘Umar stayed at Dajnan (a place between Mecca and Medina) on a cold night. He commanded an announcer (to announce). He announced that the people should offer prayer in their dwellings. Ayyub said: Nafi narrated on the authority of Ibn ‘Umar that whenever there was a cold or a rainy day night, the Messenger of Allah ﷺ commanded the announcer (to announce). He announced to offer prayer in the dwellings.
أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا كَانَتْ لَيْلَةٌ بَارِدَةٌ أَوْ مَطِيرَةٌ أَمَرَ الْمُنَادِيَ فَنَادَى الصَّلاَةُ فِي الرِّحَالِ