It is narrated from Mujahid (may Allah have mercy on him) that on the day of Uhud a number of men were martyred and their wives were widowed, and they (the women) were neighbours in one compound. They came to the Prophet (peace and blessings be upon him) and said: "O Messenger of Allah, we feel lonely at night, so we spend the night with one of us; then when morning comes we hurry back to our houses." The Prophet (peace and blessings be upon him) said: "Talk together at the house of one of you as long as you like; then when you want to sleep, let each one of you return to her own house."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب العدد / 15512