He who prayed on the Lailat-ul-Qadr (the Majestic Night) knowing that it is (the same night). I (believe) that he (the Prophet also) said: (He who does) it with faith and seeking reward (from Allah), his sins would be forgiven.
عَنِ النَّبِيِّ ﷺ قَالَ مَنْ يَقُمْ لَيْلَةَ الْقَدْرِ فَيُوَافِقُهَا أُرَاهُ قَالَ إِيمَانًا وَاحْتِسَابًا غُفِرَ لَهُ