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. (Using translation from Muslim 698)
خَرَجْنَا مَعَ رَسُولِ اللهِ ﷺ فِي سَفَرٍ فَمُطِرْنَا فَقَالَ لِيُصَلِّ مَنْ شَاءَ مِنْكُمْ فِي رَحْلِهِ