Messenger of Allah ﷺ said, "The Night of Qadr is in the last ten nights of the month (Ramadan), either on the first nine or in the last (remaining) seven nights (of Ramadan)." Ibn ʿAbbas added, "Search for it on the twenty-fourth (of Ramadan).
قَالَ رَسُولُ اللَّهِ ﷺ هِيَ فِي الْعَشْرِ هِيَ فِي تِسْعٍ يَمْضِينَ أَوْ فِي سَبْعٍ يَبْقَيْنَ يَعْنِي لَيْلَةَ الْقَدْرِ قَالَ عَبْدُ الْوَهَّابِ عَنْ أَيُّوبَ وَعَنْ خَالِدٍ عَنْ عِكْرِمَةَ عَنِ ابْنِ عَبَّاسٍ الْتَمِسُوا فِي أَرْبَعٍ وَعِشْرِينَ