Abdullah bin Amr bin As reported,

A group of men from Banu Hashim entered upon Asma bint Umays, and Abu Bakr al-Siddiq, who was her husband at the time, came in and saw them. He disapproved of this and mentioned it to the Messenger of Allah ﷺ, saying, "I saw nothing but good."The Messenger of Allah ﷺ said, "Allah has cleared her of any wrongdoing in this matter."Then the Messenger of Allah ﷺ stood upon the pulpit and declared, "After this day of mine, no man shall enter upon a woman whose husband is absent unless he is accompanied by one or two other men."

Azami 6431

Sahih

عن عبد الله بن عمرو بن العاص

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

الأعظمي 6431صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Rights and duties of the Muslim woman, and good treatment of her
Section
Prohibition of seclusion with a non-mahram woman
Numbering
Jami al-Kamil 6431 (2nd edition)
Azami 6431