She was married to Thabit bin Qays bin Shammas. The Prophet ﷺ went out for the morning prayer and found Habiba bint Sahl at his door in the dim light before dawn.The Prophet ﷺ asked, "Who is this?"She replied, "I am Habiba bint Sahl."He asked, "What brings you here?"She said, "Thabit bin Qays and I cannot remain together," referring to her husband.When Thabit arrived, the Prophet ﷺ said to him, "This is Habiba bint Sahl, and she has said what Allah willed her to say."Habiba said, "Messenger of Allah, everything he gave me is still with me."The Prophet ﷺ said to Thabit, "Take it back from her."So he took it back from her, and she remained with her family.
قال قرأت على عبد الرحمن بن مهدي: مالك عن يحيى بن سعيد عن عمرة بنت عبد الرحمن بن سعد بن زرارة الأنصارية أنها أخبرته
إنها كانت تحت ثابت بن قيس بن شماس وأن النبي ﷺ خرج إلى الصبح فوجد حبيبة بنت سهل على بابه بالغلس فقال النبي ﷺ من هذه قالت أنا حبيبة بنت سهل فقال ﷺ ما لك قالت لا أنا ولا ثابت بن قيس لزوجها فلما جاء ثابت قال له النبي ﷺ هذه حبيبة بنت سهل قد ذكرت ما شاء الله أن تذكر قالت حبيبة يا رسول الله كل ما أعطاني عندي فقال النبي ﷺ لثابت خذ منها فأخذ منها وجلست في أهلها
Its isnad is sahih. The hadith was narrated by Abu Dawud 2/268 no. 2227, Nasai 6/169 no. 3462, and Malik 564, all in the chapter on divorce, and with similar wording in Bukhari 9/395 no. 5273, also in the chapter on divorce, and likewise Ibn Majah 1/663 no. 2057.