Kaab bin Malik reported,

When forty nights of the fifty had passed, a messenger from the Messenger of Allah ﷺ came to me and said, "The Messenger of Allah ﷺ orders you to stay away from your wife."I asked, "Shall I divorce her, or what should I do?"He replied, "No, just keep away from her and do not approach her."He sent the same instruction to my two companions. So I said to my wife, "Go to your family and stay with them until Allah decides this matter." …the hadith continues.

Azami 6573

Sahih

في حديثه الطويل:

عن كعب بن مالك قال

حتى إذا مضت أربعون ليلة من الخمسين إذا رسول الله ﷺ يأتيني فقال: إن رسول الله ﷺ يأمرك أن تعتزل امرأتك، فقلت: أطلقها أم ماذا أفعل؟ قال: لا، بل اعتزلها ولا تقربها. وأرسل إلى صاحبي مثل ذلك، فقلت لامرأتي: الحقي بأهلك، فتكوني عندهم حتى يقضي الله في هذا الأمر… الحديث.

الأعظمي 6573صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Divorce
Section
If he says "I have parted from you" or "I have let you go" or "Go back to your family" and similar expressions, it is divorce if he intended it as such
Numbering
Jami al-Kamil 6573 (2nd edition)
Azami 6573