BAYHAQI 7965:
from Um Salamah —
[Machine] The Prophet ﷺ did not fast for two consecutive months except for the months of Sha'ban and Ramadan. This is mentioned in the narration of Shu'bah and in the narration of Sufyan it is mentioned that she said, "I have never seen the Messenger of Allah ﷺ fasting for two consecutive months except that he would connect Sha'ban with Ramadan."
البيهقي ٧٩٦٥:
عن ام سلمه —
النَّبِيَّ ﷺ لَمْ يَكُنْ يَصُومُ شَهْرَيْنِ يَجْمَعُ بَيْنَهُمَا إِلَّا شَعْبَانَ وَرَمَضَانَ لَفْظُ حَدِيثِ شُعْبَةَ وَفِي رِوَايَةِ سُفْيَانَ قَالَتْ مَا رَأَيْتُ رَسُولَ اللهِ ﷺ صَائِمًا شَهْرَيْنِ مُتَتَابِعَيْنِ إِلَّا أَنَّهُ كَانَ يَصِلُ شَعْبَانَ بِرَمَضَانَ
hadithunlocked.com