Abdullah bin Amr bin As reported,

A group of men from Banu Hashim entered upon Asma bint Umays, and Abu Bakr al-Siddiq came in while she was his wife at that time. He saw them and disliked it, so he mentioned the matter to the Messenger of Allah ﷺ, saying, "I saw nothing but good."The Messenger of Allah ﷺ said, "Allah has indeed declared her free of any wrong."Then the Messenger of Allah ﷺ stood upon the pulpit and said, "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."

Muslim 5677

Sahih

حدثنا هارون بن معروف حدثنا عبد الله بن وهب أخبرني عمرو ح و حدثني أبو الطاهر أخبرنا عبد الله بن وهب عن عمرو بن الحارث أن بكر بن سوادة حدثه أن عبد الرحمن بن جبير حدثه أن

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

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

مسلم 5677صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Peace
Chapter
Prohibition of seclusion with a non-mahram woman and entering upon her
Numbering
Darussalam 5677
Muslim 5677