Ayesha reported,

Sawda bint Zama went out at night, and Umar saw her and recognized her. He said, "By Allah, Sawda, you cannot hide yourself from us."She returned to the Prophet ﷺ and mentioned this to him. He was in my chamber having his evening meal, with a bone in his hand. Then revelation came down upon him, and when it lifted, he was saying, "You have been permitted to go out for your needs."

Azami 6346

Sahih

عن عائشة قالت

خرجت سودة بنت زمعة ليلا، فرآها عمر فعرفها، فقال: إنك والله يا سودة ما تخفين علينا، فرجعت إلى النبي ﷺ فذكرت ذلك له، وهو في حجرتي يتعشى، وإن في يده لعرقا فأنزل عليه، فرفع عنه، وهو يقول: قد أذن لكن أن تخرجن لحوائجكن.

الأعظمي 6346صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Rights and duties of the Muslim woman, and good treatment of her
Section
Permission for women to go out to the masjid and fulfill their needs
Numbering
Jami al-Kamil 6346 (2nd edition)
Azami 6346