Sayyiduna Jabir (may Allah be pleased with him) said: We set out with the Messenger of Allah (peace and blessings be upon him) on a journey and it rained, so he (peace and blessings be upon him) said: "Whoever wishes to pray in his dwelling (or place of lodging), let him pray there."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 5022