The Prophet (SAW) said,

“Whoever stands the nights of Ramadan in prayer out of faith and seeking reward shall have their previous sins forgiven.”

[Bukhari & Muslim]