Some of the companions of the Messenger of Allah ﷺ were shown Laylat al-Qadr in their dreams as falling within the last seven nights. The Messenger of Allah ﷺ then said, "I see that your dreams agree upon the last seven nights. So whoever seeks it out, let him seek it in the last seven nights."
و حدثني زياد عن مالك عن نافع
أن رجالا من أصحاب رسول الله ﷺ أروا ليلة القدر في المنام في السبع الأواخر فقال رسول الله ﷺ إني أرى رؤياكم قد تواطأت في السبع الأواخر فمن كان متحريها فليتحرها في السبع الأواخر