Salama reported,

He traced it back to the Prophet ﷺ, who said, "If the wife of one of you asks his permission to go to the mosque, he should not prevent her."

Muslim 988

Sahih

حدثني عمرو الناقد وزهير بن حرب جميعا عن ابن عيينة قال زهير حدثنا سفيان بن عيينة عن الزهري سمع

سالما يحدث عن أبيه

يبلغ به النبي ﷺ قال إذا استأذنت أحدكم امرأته إلى المسجد فلا يمنعها

مسلم 988صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Prayer
Chapter
Women going out to the mosques if it does not lead to temptation, and that she should not go out perfumed
Numbering
Darussalam 988
Muslim 988