أَخْبَرَنَا عَلِيُّ بْنُ الْمُنْذِرِ، قَالَ حَدَّثَنَا ابْنُ فُضَيْلٍ، قَالَ حَدَّثَنَا يَحْيَى بْنُ سَعِيدٍ، عَنْ أَبِي سَلَمَةَ، عَنْ أَبِي هُرَيْرَةَ، رضى الله عنه قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏"‏ مَنْ صَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ ‏"‏ ‏.‏

It was narrated that Abu Hurairah said: "The Messenger of Allah said: 'Whoever fasts Ramadan out of faith and in the hope of reward, he will be forgiven his previous sins." ' Translation Not Available

Book Ref: Sunan An Nisai Book 22 Hadith 2205
Web Ref:  Sunan An Nisai Vol 3 Book 22 Hadith 2207