Anas bin Malik reported,

The Messenger of Allah ﷺ took an oath to stay away from his wives for a month and secluded himself in an upper room of his. He came down after twenty-nine days.It was said to him, "Messenger of Allah, you swore to stay away for a month."He replied, "The month is twenty-nine days."

Bukhari 5201

Sahih

حدثنا خالد بن مخلد حدثنا سليمان قال حدثني حميد

عن أنس رضي الله عنه قال

آلى رسول الله ﷺ من نسائه شهرا وقعد في مشربة له فنزل لتسع وعشرين فقيل يا رسول الله إنك آليت على شهر قال إن الشهر تسع وعشرون

البخاري 5201صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Marriage
Chapter
Allah's saying, "Men are in charge of women by right of what Allah has favored one over another" to His saying, "Indeed, Allah is ever Exalted and Grand"
Numbering
Darussalam 5201
Bukhari 5201