Umm Salama bint Abu Umaya reported,

The Prophet ﷺ swore that he would not visit some of his wives for a month. When twenty-nine days had passed, he went to them in the morning or the evening. He was asked, "Prophet of Allah, did you not swear that you would not visit them for a month?"He replied, "A month can be twenty-nine days."

Azami 6314

Sahih

عن أم سلمة

أن النبي ﷺ حلف لا يدخل على بعض أهله شهرا، فلما مضى تسعة وعشرون يوما غدا عليهن أو راح، فقيل له: يا نبي الله، حلفت أن لا تدخل عليهن شهرا؟ قال: إن الشهر يكون تسعة وعشرين يوما.

الأعظمي 6314صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Marriage
Chapter
Rights and duties of the Muslim woman, and good treatment of her
Section
Husband's right over the wife
Numbering
Jami al-Kamil 6314 (2nd edition)
Azami 6314