It was narrated that 'Amr bin Aws said: A man of Thaqif told us that he heard the caller of the Messenger of Allah (ﷺ) on a rainy night during a journey saying: 'Hayya 'ala as-salah, Hayya 'ala al'falah, sallu fi rihalikum (Come to prayer, come to prosperity, pray in your dwellings).'
It was narrated from Nafi' that Ibn 'Umar gave a call to prayer on a cold and windy night, and he said: Pray where you are, for the Prophet (ﷺ) used to order the Mu'adhdhin, if it was a cold and rainy night, to say: 'Pray in your dwellings.'