Usamah attended the Prophet (ﷺ) on the occasion of the treaty of al-Hudaybiyyah on Friday. The rain fell as little as the soles of the shoes of the people were not set. He (the Prophet) commanded them to offer Friday prayer in their dwellings.
Sunan Abi Dawud Book 2, Hadith 670