Sunan an-Nasa'i, Book 22, Hadith 263 (Nasa'i 2357)

It was narrated from Umm Salamah:

That the Messenger of Allah would not fast any two consecutive months except Shaban and Ramadan.