Abdullah bin Amr bin As reported,

A group of men from Bani Hashim came in to visit Asma bint Umays, and Abu Bakr al-Siddiq entered while she was his wife at that time. He saw them and disliked what he saw, so he mentioned it to the Prophet ﷺ and said, "I saw nothing but good."The Messenger of Allah ﷺ said, "Allah has cleared her of any wrongdoing in this."Then the Messenger of Allah ﷺ stood on the pulpit and declared, "After this day, no man is to enter upon a woman whose husband is absent unless he is accompanied by one or two other men."

Azami 6547

Sahih

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

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

الأعظمي 6547صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Wedding feast
Section
Dislike of visiting women whose husbands are absent
Numbering
Jami al-Kamil 6547 (2nd edition)
Azami 6547