Abu Sa’id al-Khudri reported: The Messenger of Allah, peace and blessings be upon him, said, “Whoever fasts the month of Ramadan, acknowledging its limits and guarding it as it should be, then it will expiate the sins which came before it.”
Source: Musnad Aḥmad 11524
Grade: Hasan (fair) according to Al-Arna’ut
عَنْ أَبِي سَعِيدٍ الْخُدْرِيِّ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مَنْ صَامَ رَمَضَانَ وَعَرَفَ حُدُودَهُ وَتَحَفَّظَ مِمَّا كَانَ يَنْبَغِي لَهُ أَنْ يَتَحَفَّظَ فِيهِ كَفَّرَ مَا قَبْلَهُ
11524 مسند أحمد بن حنبل
18/84 المحدث شعيب الأرناؤوط خلاصة حكم المحدث حسن في تخريج المسند