(47) The Book Of Faith and its Signs
كتاب الإيمان وشرائعه
(21) Chapter: Praying Qiyam in Ramadan
(21) قِيَامُ رَمَضَانَ
Sunan an-Nasa'i 5026 
It was narrated from Abu Hurairah that:
The Prophet [SAW] said: "Whoever stands (in the voluntary night prayer of) Ramadan out of faith and in the hope of reward, his previous sins will be forgiven."
أَخْبَرَنَا مُحَمَّدُ بْنُ إِسْمَعِيلَ قَالَ حَدَّثَنَا عَبْدُ اللَّهِ بْنُ مُحَمَّدِ بْنِ أَسْمَاءَ قَالَ حَدَّثَنَا جُوَيْرِيَةُ عَنْ مَالِكٍ عَنْ الزُّهْرِيِّ أَخْبَرَنِي أَبُو سَلَمَةَ بْنُ عَبْدِ الرَّحْمَنِ وَحُمَيْدُ بْنُ عَبْدِ الرَّحْمَنِ عَنْ أَبِي هُرَيْرَةَ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ مَنْ قَامَ رَمَضَانَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ
Grade :  Sahih (Darussalam)
Reference : Sunan an-Nasa'i 5026
In-book reference : Book 47, Hadith 42
English translation : Vol. 6, Book 47, Hadith 5029