أَخْبَرَنَا مُحَمَّدُ بْنُ عَبْدِ اللَّهِ بْنِ عَبْدِ الْحَكَمِ، عَنْ شُعَيْبٍ، عَنِ اللَّيْثِ، قَالَ أَنْبَأَنَا خَالِدٌ، عَنِ ابْنِ أَبِي هِلاَلٍ، عَنِ ابْنِ شِهَابٍ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ رَسُولِ اللَّهِ صلى الله عليه وسلم قَالَ ‏"‏ مَنْ قَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ ‏"‏ ‏.‏
Translation
It was narrated from Abu Hurairah that the Prophet said

"Whoever fasts during Ramadan" and according to the Hadith of Qutaibah, the Prophet said: "Whoever spends the nights of Ramadan in prayer (Qiyam) out of faith and in the hope of reward, he will be forgiven his previous sins, and whoever spends the night of Lailat Al-Qadr in prayer out of faith and in the hope of reward, he will be forgiven his previous sins." '

Comment

The Book of Fasting - Sunan an-Nasa'i

A commentary on the virtues of Ramadan fasting and night prayers from Sunan an-Nasa'i 2202

Hadith Text

"Whoever fasts during Ramadan" and according to the Hadith of Qutaibah, the Prophet said: "Whoever spends the nights of Ramadan in prayer (Qiyam) out of faith and in the hope of reward, he will be forgiven his previous sins, and whoever spends the night of Lailat Al-Qadr in prayer out of faith and in the hope of reward, he will be forgiven his previous sins."

Scholarly Commentary

This noble hadith establishes three great acts of worship: fasting Ramadan, performing night prayers during Ramadan, and specifically seeking Laylat al-Qadr. The condition "out of faith" means with correct belief in Allah's command, and "in hope of reward" signifies performing these acts solely for Allah's pleasure.

The comprehensive forgiveness mentioned applies to minor sins, as major sins require specific repentance. The combination of fasting and night prayer represents the perfection of worship through both daytime and nighttime devotion.

Laylat al-Qadr is singled out for its superior merit - a night better than a thousand months. The wise Legislator connected these great rewards to motivate believers to maximize their worship during this blessed month.

Juridical Rulings

Tarawih prayers are confirmed Sunnah according to scholarly consensus. The recommended number is 20 rak'ahs followed by 3 witr, though the number is flexible.

Seeking Laylat al-Qadr is emphasized in the last ten nights of Ramadan, particularly the odd-numbered nights. The most likely night is the 27th, though it varies annually.

The forgiveness promised requires sincere intention and avoidance of major sins that nullify rewards. The fasting must be complete and proper according to Islamic guidelines.