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)
وَقَالَ رَسُولُ اللهِ ﷺ مَنْ قَامَ لَيْلَةَ الْقَدْرِ إِيمَانًا وَاحْتِسَابًا فَإِنَّهُ يُغْفَرُ لَهُ مَا تَقَدَّمَ مِنْ ذَنْبِهِ