Sunan an-Nasa'i, Book 22, Hadith 112 (Nasa'i 2206)

It was narrated from Abu Hurairah that the Messenger of Allah said:

"Whoever spends the night of Ramadan in prayer (Qiyam) out of faith and in the hope of reward, he will be forgiven his previous sins." '