It is narrated from Sayyiduna Ibn Abbas and Sayyiduna Jabir (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said: "Whoever fasts Ramadan and then follows it with six days of Shawwal has fasted the whole year."
Only Yahya bin Sa'id al-Mazini (may Allah have mercy on him) narrated this hadith from Amr bin Dinar (may Allah have mercy on him), and Bakkar bin al-Walid al-Dabbi (Abu al-Abbas bin Bakkar) is alone in narrating it.
Hadith Referenceالمعجم الأوسط / باب العين / 4642
Hadith Gradingمحدثین:إسناده ضعيف جدًّا، فيه يحيى بن سعيد المازني متروك
Hadith Takhrij«قال الهيثمي: فيه يحيى بن سعيد المازني وهو متروك «مجمع الزوائد ومنبع الفوائد، ج 3، ص 184»» «أخرجه البيهقي فى «السنن الكبرى» برقم: 8522، وأحمد فى «مسنده» برقم: 14523، 14524، 14701، 14937، وعبد بن حميد فى «مسنده» برقم: 1116، والطحاوي فى «شرح مشكل الآثار» برقم: 2351، 2350، والطبراني فى «الأوسط» برقم: 3192، 8979»