وَيُذْكَرُ عَنْ مُعَاوِيَةَ بْنِ حَيْدَةَ رَفْعُهُ غَيْرَ أَنْ لَا تُهْجَرَ إِلَّا فِي الْبَيْتِ وَالْأَوَّلُ أَصَحُّ .
And it is narrated from Muawiyah bin Haidah in a marfu’ form (this has been recorded by Abu Dawood and others) that a woman’s abandonment (i.e., divorce) should take place in the house itself, but the first hadith (i.e., that of Anas, may Allah be pleased with him) is more authentic.
Narrated Um Salama: The Prophet took an oath that he would not enter upon some of his wives for one month. But when twenty nine days had elapsed, he went to them in the morning or evening. It was said to him, "O Allah's Prophet! You had taken an oath that you would not enter upon them for one month." He replied, "The month can be of twenty nine days."
Related hadith on this topic