The Messenger of Allah ﷺ used to fast until we would say he did not intend to break his fast, and he would go without fasting until we would say he did not intend to fast. He never fasted an entire consecutive month other than Ramadan from the time he arrived in Medina.
حدثني محمد بن جعفر حدثنا شعبة عن أبي بشر عن سعيد بن جبير
كان رسول الله ﷺ يصوم حتى نقول لا يريد أن يفطر ويفطر حتى نقول لا يريد أن يصوم وما صام شهرا متتابعا غير رمضان منذ قدم المدينة