Sayyidah Umm Humayd al-Ansariyyah (may Allah be pleased with her) narrates: I said: O Messenger of Allah! Our husbands prevent us from praying with you, although we love to pray with you. The Messenger of Allah (peace and blessings be upon him) said: "Your praying in your inner rooms is better than your praying in your chambers, your praying in your chambers is better than your praying in the houses of your neighbourhood, and your praying in the houses of your neighbourhood is better than praying in congregation."
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 21818