1037 - حَدَّثَنَا الْحُمَيْدِيُّ قَالَ: ثنا سُفْيَانُ، قَالَ: ثنا الزُّهْرِيُّ، قَالَ: أَخْبَرَنِي أَبُو سَلَمَةَ بْنُ عَبْدِ الرَّحْمَنِ، عَنْ أَبِي هُرَيْرَةَ، أَنَّ رَسُولَ اللَّهِ صَلَّي اللهُ عَلَيْهِ وَسَلَّمَ، قَالَ: «مَنْ صَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ، وَمَنْ قَامَ لَيْلَةَ الْقَدْرِ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ»
Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates this statement of the Noble Prophet (peace and blessings of Allah be upon him): "Whoever fasts during Ramadan with faith and seeking reward, his past sins are forgiven. And whoever stands in prayer during the Night of Qadr with faith and seeking reward, his past sins are forgiven."
Related hadith on this topic