Sahih Muslim Book 6, Hadith 33
Pray in your dwellings, but he did not repeat for the second time words of Ibn 'Umar (Pray in your dwellings).
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.
We set cut with the Messenger of Allah (ﷺ) on a journey when it began to rain. Upon this he said: He who desires may pray in his dwelling.