Messenger of Allah ﷺ said, "Whoever establishes the prayers on the night of Qadr out of sincere faith and hoping to attain Allah's rewards (not to show off) then all his past sins will be forgiven." (Using translation from Bukhārī 35)
قَالَ رَسُولُ اللهِ ﷺ «مَنْ يَقُمْ لَيْلَةَ الْقَدْرِ إِيمَانًا وَاحْتِسَابًا يَغْفِرُ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ»