Sunan an-Nasa'i, Book 20, Hadith 5 (Nasa'i 1607)

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."