Sunan an-Nasa'i, Book 20, Hadith 6 (Nasa'i 1608)

It was narrated from Abu Hurairah that:

The Messenger of Allah (ﷺ) said: "Whoever prays Qiyam during Ramadan out of faith and in the hope of reward, he will be forgiven his previous sins."