Hazrat Abu Mulaikh narrates from his father that on the day of Hunain, it rained while we were with the Prophet Muhammad (peace be upon him), so the Prophet (peace be upon him) said: "The prayer will be performed in the shelters and tents."
Hadith Referenceصحيح ابن خزيمه / جماع أبواب العذر الذى يجوز فيه ترك إتيان الجماعة / 1658