Alqamah narrated that some women of the Hamdan tribe, who had been given the news of their husbands' deaths, asked Sayyiduna Ibn Mas'ud (may Allah be pleased with him). They said: We feel lonely (living alone). Sayyiduna Abdullah (may Allah be pleased with him) said: "Gather together during the day, then at night let each of you return to her own house."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 9623