Sahih Muslim Book 6, Hadith 31
Pray in your dwellings; and then said: When it was a cold, rainy night, the Messenger of Allah (ﷺ) used to command the Mu'adhdhin to say" Pray in your dwellings."
I prayed behind the Messenger of Allah (ﷺ) at Mina, and there was the greatest number of people, and they prayed two rak'ahs on the occasion of the Farewell Pilgrimage. (Muslim said: Haritha b. Wahb al-Khuza'i is the brother of 'Ubaidullah b. 'Umar son of Khattab from the side of his mother.)
Pray in your dwellings, pray in your dwellings, and then said: When it was a cold night or it was raining in a journey the Messenger of Allah (may peace he upon him) used to command the Mu'adhdhin to announce: Pray in your dwellings.